mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
chg: use calloc
This commit is contained in:
parent
e81b0fa355
commit
99b6087b01
7 changed files with 9 additions and 9 deletions
|
@ -75,7 +75,7 @@ const struct timeval timeout = {
|
|||
|
||||
serial_port uart_open(const char* pcPortName)
|
||||
{
|
||||
serial_port_unix* sp = malloc(sizeof(serial_port_unix));
|
||||
serial_port_unix* sp = calloc(sizeof(serial_port_unix), sizeof(uint8_t));
|
||||
if (sp == 0) return INVALID_SERIAL_PORT;
|
||||
|
||||
if (memcmp(pcPortName, "tcp:", 4) == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue