[gvfs] Don't return NULL from g_daemon_file_query_writable_namespaces()
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] Don't return NULL from g_daemon_file_query_writable_namespaces()
- Date: Fri, 10 Apr 2015 08:33:33 +0000 (UTC)
commit faa2b07ab0436ad66823eea0cf1720cc41dbc6e8
Author: Christophe Fergeau <cfergeau redhat com>
Date: Sun Mar 29 17:35:28 2015 +0200
Don't return NULL from g_daemon_file_query_writable_namespaces()
Since commit b358ca "Make sure metadata is always returned by
query_writable_namespaces()", query_writable_namespaces() is expected to
return non-NULL values. There is one error case where it's not currently
doing that.
https://bugzilla.gnome.org/show_bug.cgi?id=747362
client/gdaemonfile.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 8403d0f..db36913 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -2597,7 +2597,10 @@ g_daemon_file_query_writable_namespaces (GFile *file,
proxy = create_proxy_for_file (file, NULL, &path, NULL, cancellable, error);
if (proxy == NULL)
- return FALSE;
+ {
+ list = g_file_attribute_info_list_new ();
+ goto out;
+ }
iter_list = NULL;
res = gvfs_dbus_mount_call_query_writable_namespaces_sync (proxy,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]