fix elliots "logic fix" that dereferences NULL nodes if C handlers are
authorTim Janik <timj@gtk.org>
Wed, 29 Nov 2000 12:34:14 +0000 (12:34 +0000)
committerTim Janik <timj@src.gnome.org>
Wed, 29 Nov 2000 12:34:14 +0000 (12:34 +0000)
Wed Nov 29 13:30:05 2000  Tim Janik  <timj@gtk.org>

        * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences
        NULL nodes if C handlers are searched for specific signals.

gobject/ChangeLog
gobject/gsignal.c

index 082a0a5..fde2b44 100644 (file)
@@ -1,3 +1,8 @@
+Wed Nov 29 13:30:05 2000  Tim Janik  <timj@gtk.org>
+
+       * 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  <sopwith@redhat.com>
 
        * gsignal.c: Fix warnings about possible use of uninitialized
index 3964c1f..b5ce638 100644 (file)
@@ -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)