summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-03-29 17:35:28 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-04-10 10:08:35 +0200
commitfaa2b07ab0436ad66823eea0cf1720cc41dbc6e8 (patch)
tree42bf916e8aa86c639d6797169795a9781e3d1e6e /client
parent090543fa9a89b7d2361e0c188508685351f2c62c (diff)
downloadgvfs-faa2b07ab0436ad66823eea0cf1720cc41dbc6e8.tar.gz
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
Diffstat (limited to 'client')
-rw-r--r--client/gdaemonfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 8403d0f0..db36913a 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,