Commit 6733a2c2 authored by Federico Vaga's avatar Federico Vaga

lib: initialize memory

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 5467b4f8
......@@ -68,6 +68,7 @@ struct fdelay_board *fdelay_open(int dev_id)
b = malloc(sizeof(*b));
if (!b)
return NULL;
memset(b, 0, sizeof(*b));
/* get sysfs */
snprintf(path, sizeof(path),
......
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