make checker happy

This commit is contained in:
Richard Frith-Macdonald 2018-01-31 14:40:11 +00:00
parent dcd3b8c5a9
commit db8b06b47c

View file

@ -775,7 +775,7 @@ ihandler(int sig)
NSMutableArray *byName; NSMutableArray *byName;
NSMutableArray *byObject; NSMutableArray *byObject;
unsigned pos; unsigned pos;
GDNCNotification *notification = nil; GDNCNotification *notification;
byName = [observersForNames objectForKey: notificationName]; byName = [observersForNames objectForKey: notificationName];
byObject = [observersForObjects objectForKey: notificationObject]; byObject = [observersForObjects objectForKey: notificationObject];
@ -806,15 +806,17 @@ ihandler(int sig)
} }
} }
if ([observers count] == 0)
{
return;
}
/* /*
* Build notification object to queue for observer. * Build notification object to queue for observer.
*/ */
if ([observers count] > 0) notification = [GDNCNotification notificationWithName: notificationName
{ object: notificationObject
notification = [GDNCNotification notificationWithName: notificationName data: d];
object: notificationObject
data: d];
}
/* /*
* Add the object to the queue for this observer depending on suspension * Add the object to the queue for this observer depending on suspension