Skip to content

Commit

Permalink
Merge pull request #189 from flaviojs/fix-sizeof-type-parser_map_array
Browse files Browse the repository at this point in the history
Fix sizeof type in parser_map_array.
  • Loading branch information
grossmj authored Mar 26, 2024
2 parents c5610b5 + 20c8b17 commit 68de4f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ char **parser_map_array(parser_context_t *ctx)
if (ctx->tok_count <= 0)
return NULL;

if (!(map = calloc(ctx->tok_count,sizeof(char **))))
if (!(map = calloc(ctx->tok_count,sizeof(char *))))
return NULL;

for(i=0,tok=ctx->tok_head;(i<ctx->tok_count) && tok;i++,tok=tok->next)
Expand Down

0 comments on commit 68de4f1

Please sign in to comment.