Commit 856f0782 authored by Matthieu Dorier's avatar Matthieu Dorier

error-prone use of malloc instead of calloc

parent da062e4b
......@@ -544,7 +544,7 @@ hg_id_t margo_register_name_mplex(margo_instance_id mid, const char *func_name,
if(element)
return(id);
element = malloc(sizeof(*element));
element = calloc(1,sizeof(*element));
if(!element)
return(0);
element->key = key;
......
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