mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
calloc
This commit is contained in:
parent
6290d50564
commit
0ba072118e
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
|||
// Example width set to 50 to allow help descriptions to align. approx line 93
|
||||
|
||||
int CLIParserInit(CLIParserContext **ctx, const char *vprogramName, const char *vprogramHint, const char *vprogramHelp) {
|
||||
*ctx = malloc(sizeof(CLIParserContext));
|
||||
*ctx = calloc(sizeof(CLIParserContext), sizeof(uint8_t));
|
||||
if (!*ctx) {
|
||||
PrintAndLogEx(ERR, "ERROR: Insufficient memory\n");
|
||||
return 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue