Fix return types in secret_service_search_finish() on error paths

Signed-off-by: Jiří Klimeš <jklimes@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=698040
This commit is contained in:
Jiří Klimeš 2013-04-15 09:38:04 +02:00 committed by Stef Walter
parent 77e7695e64
commit 227a5b2904

View File

@ -354,15 +354,15 @@ secret_service_search_finish (SecretService *service,
SearchClosure *closure; SearchClosure *closure;
GList *items = NULL; GList *items = NULL;
g_return_val_if_fail (service == NULL || SECRET_IS_SERVICE (service), FALSE); g_return_val_if_fail (service == NULL || SECRET_IS_SERVICE (service), NULL);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE); g_return_val_if_fail (error == NULL || *error == NULL, NULL);
g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (service), g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (service),
secret_service_search), FALSE); secret_service_search), NULL);
res = G_SIMPLE_ASYNC_RESULT (result); res = G_SIMPLE_ASYNC_RESULT (result);
if (_secret_util_propagate_error (res, error)) if (_secret_util_propagate_error (res, error))
return FALSE; return NULL;
closure = g_simple_async_result_get_op_res_gpointer (res); closure = g_simple_async_result_get_op_res_gpointer (res);
if (closure->unlocked) if (closure->unlocked)