gio/tests: Fix a g_return_val_if_fail() in a void function
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 26 Nov 2013 11:18:01 +0000 (11:18 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 27 Nov 2013 10:01:29 +0000 (10:01 +0000)
Should be g_return_if_fail() instead.

https://bugzilla.gnome.org/show_bug.cgi?id=113075

gio/tests/gnotification-server.c

index a028e03..0df2d9f 100644 (file)
@@ -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)
     {