From c43251e5fec248d341adeb0cbfdf029af120dd3f Mon Sep 17 00:00:00 2001 From: tedbullock Date: Tue, 4 Dec 2007 05:15:36 +0000 Subject: [PATCH] Fix segmentation fault introduced in September 23, 2007 commit --- httperf/src/timer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/httperf/src/timer.c b/httperf/src/timer.c index 7ac4b28..14e55af 100755 --- a/httperf/src/timer.c +++ b/httperf/src/timer.c @@ -242,11 +242,9 @@ timer_schedule(void (*timeout) (struct Timer * t, Any_Type arg), t->timeout_delay = delay; if (delay > 0) - if (list_push(active_timers, (Any_Type) (void *) t) == false) - return false; + list_push(active_timers, (Any_Type) (void *) t); else - if (list_push(persistent_timers, (Any_Type) (void *) t) == false) - return false; + list_push(persistent_timers, (Any_Type) (void *) t); if (DBG > 2) fprintf(stderr,