[glib] gio/tests: Fix a g_return_val_if_fail() in a void function



commit fe004445a41d69075fcb542219026d4b8fc343a9
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Tue Nov 26 11:18:01 2013 +0000

    gio/tests: Fix a g_return_val_if_fail() in a void function
    
    Should be g_return_if_fail() instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=113075

 gio/tests/gnotification-server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/gnotification-server.c b/gio/tests/gnotification-server.c
index a028e03..0df2d9f 100644
--- a/gio/tests/gnotification-server.c
+++ b/gio/tests/gnotification-server.c
@@ -284,7 +284,7 @@ g_notification_server_new (void)
 void
 g_notification_server_stop (GNotificationServer *server)
 {
-  g_return_val_if_fail (G_IS_NOTIFICATION_SERVER (server), FALSE);
+  g_return_if_fail (G_IS_NOTIFICATION_SERVER (server));
 
   if (server->name_owner_id)
     {


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