gvfs r1403 - in trunk: . common
- From: otte svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1403 - in trunk: . common
- Date: Wed, 27 Feb 2008 14:16:51 +0000 (GMT)
Author: otte
Date: Wed Feb 27 14:16:50 2008
New Revision: 1403
URL: http://svn.gnome.org/viewvc/gvfs?rev=1403&view=rev
Log:
2008-02-27 Benjamin Otte <otte gnome org>
* common/gmountsource.c: (g_mount_source_ask_password_finish):
Set out parameters even in error case.
Modified:
trunk/ChangeLog
trunk/common/gmountsource.c
Modified: trunk/common/gmountsource.c
==============================================================================
--- trunk/common/gmountsource.c (original)
+++ trunk/common/gmountsource.c Wed Feb 27 14:16:50 2008
@@ -274,15 +274,15 @@
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 @@
if (password_save_out)
*password_save_out = data->password_save;
- return TRUE;
+ return data != &def;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]