mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
chg: use calloc
This commit is contained in:
parent
99b6087b01
commit
ad72a424ef
15 changed files with 36 additions and 27 deletions
|
@ -51,7 +51,8 @@ int scandir (const char *dir,
|
|||
nl = ntmp;
|
||||
}
|
||||
|
||||
if (!(etmp = (struct dirent *) malloc (sizeof *ent))) {
|
||||
etmp = (struct dirent *) calloc (sizeof *ent, sizeof(char));
|
||||
if (!etmp) {
|
||||
err_no = 1;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue