diff --git a/common/parser.c b/common/parser.c index 9db8f1513..4022ebe16 100644 --- a/common/parser.c +++ b/common/parser.c @@ -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;(itok_count) && tok;i++,tok=tok->next)