From: Michal Voců Date: Fri, 14 Jan 2005 15:01:18 +0000 (+0000) Subject: * added the assert correctly X-Git-Tag: glite-lb-logger_R_1_0_1~94 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=71eb9f110a1caf929b4a5a9b1fd7f5c489ae2d1a;p=jra1mw.git * added the assert correctly --- diff --git a/org.glite.lb.logger/src/event_queue.c b/org.glite.lb.logger/src/event_queue.c index ad8ade1..75a723f 100644 --- a/org.glite.lb.logger/src/event_queue.c +++ b/org.glite.lb.logger/src/event_queue.c @@ -171,10 +171,12 @@ event_queue_insert(struct event_queue *eq, struct server_msg *msg) if(eq->mark_this && (el->prev == eq->mark_this)) eq->mark_prev = el; #endif + + assert(eq->head != NULL); + event_queue_unlock(eq); /* end of critical section */ - assert(eq->head != NULL); return(0); }