Fix a return_if_fail confusion
authorMatthias Clasen <mclasen@redhat.com>
Sat, 11 Oct 2014 19:53:13 +0000 (15:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 11 Oct 2014 19:53:13 +0000 (15:53 -0400)
This slipped through my editing of the patch.

gobject/gtype.c

index a11ef27..dc58524 100644 (file)
@@ -3847,7 +3847,7 @@ g_type_get_instance_count (GType type)
   TypeNode *node;
 
   node = lookup_type_node_I (type);
-  g_return_if_fail (node != NULL);
+  g_return_val_if_fail (node != NULL, 0);
 
   return g_atomic_int_get (&node->instance_count);
 #else