diff --git a/modules/pike/pike_funcs.c b/modules/pike/pike_funcs.c index 83b565abd8a..a0b964fa764 100644 --- a/modules/pike/pike_funcs.c +++ b/modules/pike/pike_funcs.c @@ -172,7 +172,7 @@ void clean_routine(unsigned int ticks , void *param) /* LM_DBG("entering (%d)\n",ticks); */ /* before locking check first if the list is not empty and if can * be at least one element removed */ - if ( is_list_empty( timer )) return; /* quick exit */ + if (timer==0 || is_list_empty( timer )) return; /* quick exit */ /* get the expired elements */ lock_get( timer_lock );