Commit 92ec10f9 authored by Federico Vaga's avatar Federico Vaga

lib: bug fix in fru_alloc

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 52e57b3e
......@@ -13,7 +13,7 @@ static void *fru_alloc(size_t size)
{
void *buf = malloc(size);
if (!buf)
if (buf)
memset(buf, 0, size);
return buf;
......
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