return NULL not FALSE

This commit is contained in:
William Jon McCann 2010-11-15 14:41:25 -05:00
parent ef744d75d0
commit e6a4970a79
1 changed files with 4 additions and 3 deletions

View File

@ -267,7 +267,8 @@ notify_get_server_caps (void)
proxy = _notify_get_proxy (NULL); proxy = _notify_get_proxy (NULL);
if (proxy == NULL) { if (proxy == NULL) {
return FALSE; g_warning ("Failed to connect to proxy");
return NULL;
} }
result = g_dbus_proxy_call_sync (proxy, result = g_dbus_proxy_call_sync (proxy,
@ -278,11 +279,11 @@ notify_get_server_caps (void)
NULL, NULL,
NULL); NULL);
if (result == NULL) { if (result == NULL) {
return FALSE; return NULL;
} }
if (!g_variant_is_of_type (result, G_VARIANT_TYPE ("(as)"))) { if (!g_variant_is_of_type (result, G_VARIANT_TYPE ("(as)"))) {
g_variant_unref (result); g_variant_unref (result);
return FALSE; return NULL;
} }
g_variant_get (result, "(^as)", &caps); g_variant_get (result, "(^as)", &caps);