- check whether to return notifid in NotifReceive()
authorJiří Škrábal <nykolas@ics.muni.cz>
Wed, 10 Nov 2004 15:39:14 +0000 (15:39 +0000)
committerJiří Škrábal <nykolas@ics.muni.cz>
Wed, 10 Nov 2004 15:39:14 +0000 (15:39 +0000)
org.glite.lb.client/src/notification.c

index 12b6cbf..72ee5bb 100644 (file)
@@ -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: