[glib] Fix a return_if_fail confusion
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix a return_if_fail confusion
- Date: Sat, 11 Oct 2014 19:53:41 +0000 (UTC)
commit 58ec89ea7c86f9b61ae4a0017019e19f09a1542f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 11 15:53:13 2014 -0400
Fix a return_if_fail confusion
This slipped through my editing of the patch.
gobject/gtype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index a11ef27..dc58524 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]