Commit bf9090c6 authored by Aurelio Colosimo's avatar Aurelio Colosimo

fix return value -1 when calloc fails

parent d5170669
...@@ -33,7 +33,7 @@ extern int posix_timer_init(struct pp_instance *ppi) ...@@ -33,7 +33,7 @@ extern int posix_timer_init(struct pp_instance *ppi)
t = calloc(1,sizeof(*t)); t = calloc(1,sizeof(*t));
if (!t) if (!t)
return 0; return -1;
ppi->timers[i] = t; ppi->timers[i] = t;
} }
......
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