summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2010-11-15 14:41:25 -0500
committerWilliam Jon McCann <jmccann@redhat.com>2010-11-15 14:41:25 -0500
commite6a4970a790a158fef9a042a492671a765b936a1 (patch)
tree135ddbb2b352596a42bf767d8785f7b05fb3898a
parentef744d75d08c75758e82daeb66dcdd1938f17482 (diff)
downloadlibnotify-e6a4970a790a158fef9a042a492671a765b936a1.tar.gz
return NULL not FALSE
-rw-r--r--libnotify/notify.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libnotify/notify.c b/libnotify/notify.c
index dad8d9a..e4db6f1 100644
--- a/libnotify/notify.c
+++ b/libnotify/notify.c
@@ -267,7 +267,8 @@ notify_get_server_caps (void)
proxy = _notify_get_proxy (NULL);
if (proxy == NULL) {
- return FALSE;
+ g_warning ("Failed to connect to proxy");
+ return NULL;
}
result = g_dbus_proxy_call_sync (proxy,
@@ -278,11 +279,11 @@ notify_get_server_caps (void)
NULL,
NULL);
if (result == NULL) {
- return FALSE;
+ return NULL;
}
if (!g_variant_is_of_type (result, G_VARIANT_TYPE ("(as)"))) {
g_variant_unref (result);
- return FALSE;
+ return NULL;
}
g_variant_get (result, "(^as)", &caps);