Fix segmentation fault introduced in September 23, 2007 commit
This commit is contained in:
parent
07ff4bbac9
commit
c43251e5fe
@ -242,11 +242,9 @@ timer_schedule(void (*timeout) (struct Timer * t, Any_Type arg),
|
|||||||
t->timeout_delay = delay;
|
t->timeout_delay = delay;
|
||||||
|
|
||||||
if (delay > 0)
|
if (delay > 0)
|
||||||
if (list_push(active_timers, (Any_Type) (void *) t) == false)
|
list_push(active_timers, (Any_Type) (void *) t);
|
||||||
return false;
|
|
||||||
else
|
else
|
||||||
if (list_push(persistent_timers, (Any_Type) (void *) t) == false)
|
list_push(persistent_timers, (Any_Type) (void *) t);
|
||||||
return false;
|
|
||||||
|
|
||||||
if (DBG > 2)
|
if (DBG > 2)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
Loading…
Reference in New Issue
Block a user