[glib] Fix build



commit 87a542bc960ff230d1478d089436793fdde83db0
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Wed Jun 29 18:00:53 2011 +0100

    Fix build
    
    The g_return_val_if_fail() macro takes a return value.

 gio/gsimpleaction.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsimpleaction.c b/gio/gsimpleaction.c
index 8f448d6..8dccf1e 100644
--- a/gio/gsimpleaction.c
+++ b/gio/gsimpleaction.c
@@ -485,7 +485,7 @@ g_simple_action_new (const gchar        *name,
 {
   GSimpleAction *simple;
 
-  g_return_val_if_fail (name != NULL);
+  g_return_val_if_fail (name != NULL, NULL);
 
   simple = g_object_new (G_TYPE_SIMPLE_ACTION, NULL);
   simple->name = g_strdup (name);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]