diff options
author | Benjamin Otte <otte@gnome.org> | 2008-02-27 14:16:50 +0000 |
---|---|---|
committer | Benjamin Otte <otte@src.gnome.org> | 2008-02-27 14:16:50 +0000 |
commit | a2decff57efa5f0c14e8d6456b6b0813daf2ee61 (patch) | |
tree | 8384076fdde5f90baa37732e49446f34db9a9f12 /common | |
parent | d623bb0a1cff15810a7f1863d1d5e51a82b21a61 (diff) | |
download | gvfs-a2decff57efa5f0c14e8d6456b6b0813daf2ee61.tar.gz |
Set out parameters even in error case.
2008-02-27 Benjamin Otte <otte@gnome.org>
* common/gmountsource.c: (g_mount_source_ask_password_finish):
Set out parameters even in error case.
svn path=/trunk/; revision=1403
Diffstat (limited to 'common')
-rw-r--r-- | common/gmountsource.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/gmountsource.c b/common/gmountsource.c index cce63d98..67b956a4 100644 --- a/common/gmountsource.c +++ b/common/gmountsource.c @@ -274,15 +274,15 @@ g_mount_source_ask_password_finish (GMountSource *source, char **domain_out, GPasswordSave *password_save_out) { - AskPasswordData *data; + AskPasswordData *data, def = { TRUE, }; GSimpleAsyncResult *simple; simple = G_SIMPLE_ASYNC_RESULT (result); if (g_simple_async_result_propagate_error (simple, NULL)) - return FALSE; - - data = (AskPasswordData *) g_simple_async_result_get_op_res_gpointer (simple); + data = &def; + else + data = (AskPasswordData *) g_simple_async_result_get_op_res_gpointer (simple); if (aborted) *aborted = data->aborted; @@ -308,7 +308,7 @@ g_mount_source_ask_password_finish (GMountSource *source, if (password_save_out) *password_save_out = data->password_save; - return TRUE; + return data != &def; } |