diff --git a/client/deps/cliparser/cliparser.c b/client/deps/cliparser/cliparser.c index 980e3134d..bcdb4b3d8 100644 --- a/client/deps/cliparser/cliparser.c +++ b/client/deps/cliparser/cliparser.c @@ -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;