Browse Source

Fix segmentation fault introduced in September 23, 2007 commit

ahc_fix_select
tedbullock 17 years ago
parent
commit
c43251e5fe
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      httperf/src/timer.c

+ 2
- 4
httperf/src/timer.c View File

@@ -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,


Loading…
Cancel
Save