Commit d1d1b780 authored by Guillaume Quintard's avatar Guillaume Quintard

calloc instead malloc to calm coverity

parent 13716ffb
......@@ -1415,7 +1415,7 @@ cmd_http_sendhex(CMD_ARGS)
AN(av[1]);
AZ(av[2]);
l = strlen(av[1]) / 2;
p = malloc(l);
p = calloc(1, l);
AN(p);
q = av[1];
for (i = 0; i < l; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment