fix elliots "logic fix" that dereferences NULL nodes if C handlers are

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.
This commit is contained in:
Tim Janik 2000-11-29 12:34:14 +00:00 committed by Tim Janik
parent 790a7bd3be
commit 55ec7f32a6
2 changed files with 6 additions and 1 deletions

View 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

View 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)