From: Raja R Harinath Date: Tue, 11 Jul 2000 20:28:14 +0000 (+0000) Subject: Don't return just 0 or 1. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=780e6d7e2378d3794fc52b1c7ac075225940b90f;p=dana%2Fcg-glib.git Don't return just 0 or 1. * gtype.c (g_type_get_plugin): Don't return just 0 or 1. (Committing because "obvious bug fix") --- diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 9af17fae..f20b81ed 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,7 @@ +2000-07-11 Raja R Harinath + + * gtype.c (g_type_get_plugin): Don't return just 0 or 1. + Tue Jul 11 02:48:13 2000 Tim Janik * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin(). diff --git a/gobject/gtype.c b/gobject/gtype.c index dd0988bd..72102253 100644 --- a/gobject/gtype.c +++ b/gobject/gtype.c @@ -1860,7 +1860,7 @@ g_type_get_plugin (GType type) { TypeNode *node = LOOKUP_TYPE_NODE (type); - return node && node->plugin; + return node ? node->plugin : NULL; } gboolean