Don't return just 0 or 1.
authorRaja R Harinath <harinath@src.gnome.org>
Tue, 11 Jul 2000 20:28:14 +0000 (20:28 +0000)
committerRaja R Harinath <harinath@src.gnome.org>
Tue, 11 Jul 2000 20:28:14 +0000 (20:28 +0000)
* gtype.c (g_type_get_plugin): Don't return just 0 or 1.

(Committing because "obvious bug fix")

gobject/ChangeLog
gobject/gtype.c

index 9af17fa..f20b81e 100644 (file)
@@ -1,3 +1,7 @@
+2000-07-11  Raja R Harinath  <harinath@cs.umn.edu>
+
+       * gtype.c (g_type_get_plugin): Don't return just 0 or 1.
+
 Tue Jul 11 02:48:13 2000  Tim Janik  <timj@gtk.org>
 
        * gtype.[hc]: removed g_type_is_dynamic() and added g_type_get_plugin().
index dd0988b..7210225 100644 (file)
@@ -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