From: Tim Janik Date: Wed, 29 Nov 2000 12:34:14 +0000 (+0000) Subject: fix elliots "logic fix" that dereferences NULL nodes if C handlers are X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=55ec7f32a6852dba73abb29e650615b66b065ef9;p=dana%2Fcg-glib.git fix elliots "logic fix" that dereferences NULL nodes if C handlers are Wed Nov 29 13:30:05 2000 Tim Janik * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences NULL nodes if C handlers are searched for specific signals. --- diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 082a0a59..fde2b44b 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 29 13:30:05 2000 Tim Janik + + * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences + NULL nodes if C handlers are searched for specific signals. + 2000-11-28 Elliot Lee * gsignal.c: Fix warnings about possible use of uninitialized diff --git a/gobject/gsignal.c b/gobject/gsignal.c index 3964c1fd..b5ce638e 100644 --- a/gobject/gsignal.c +++ b/gobject/gsignal.c @@ -378,7 +378,7 @@ handlers_find (gpointer instance, Handler *handler; SignalNode *node = NULL; - if (!(mask & G_SIGNAL_MATCH_FUNC)) + if (mask & G_SIGNAL_MATCH_FUNC) { node = LOOKUP_SIGNAL_NODE (signal_id); if (!node || !node->c_marshaller)