From: Jiří Škrábal Date: Wed, 10 Nov 2004 15:39:14 +0000 (+0000) Subject: - check whether to return notifid in NotifReceive() X-Git-Tag: glite-lb_R_0_1_0~69 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=c26f02ea43ccdf955381a04c3bcb63c3eb908030;p=jra1mw.git - check whether to return notifid in NotifReceive() --- diff --git a/org.glite.lb.client/src/notification.c b/org.glite.lb.client/src/notification.c index 12b6cbf..72ee5bb 100644 --- a/org.glite.lb.client/src/notification.c +++ b/org.glite.lb.client/src/notification.c @@ -695,8 +695,10 @@ int edg_wll_NotifReceive( goto err; } - *id_out = event->notification.notifId; - event->notification.notifId = NULL; + if ( id_out ) { + *id_out = event->notification.notifId; + event->notification.notifId = NULL; + } err: @@ -878,8 +880,10 @@ select: goto err; } - *id_out = event->notification.notifId; - event->notification.notifId = NULL; + if ( id_out ) { + *id_out = event->notification.notifId; + event->notification.notifId = NULL; + } err: