summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2008-11-04 13:59:39 +0000
committerTomas Bzatek <tbzatek@src.gnome.org>2008-11-04 13:59:39 +0000
commit7c39be4b04582011233b466f6cfdebec11e8f425 (patch)
treec85df877c784e06496ac1ec2bddcfb101c45ef98
parent58f70c9f5c10f0cc708dee27e9fde01f20948b06 (diff)
downloadgvfs-7c39be4b04582011233b466f6cfdebec11e8f425.tar.gz
Return an empty array on success when no content type matches
2008-11-04 Tomas Bzatek <tbzatek@redhat.com> * client/gdaemonmount.c: (g_daemon_mount_guess_content_type_sync): Return an empty array on success when no content type matches svn path=/trunk/; revision=2081
-rw-r--r--ChangeLog5
-rw-r--r--client/gdaemonmount.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c3dfd64..c1554399 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-04 Tomas Bzatek <tbzatek@redhat.com>
+
+ * client/gdaemonmount.c: (g_daemon_mount_guess_content_type_sync):
+ Return an empty array on success when no content type matches
+
2008-10-28 Cosimo Cecchi <cosimoc@gnome.org>
* daemon/gvfsbackendftp.c: (dir_default_iter_process):
diff --git a/client/gdaemonmount.c b/client/gdaemonmount.c
index 43d8e181..690d2bbe 100644
--- a/client/gdaemonmount.c
+++ b/client/gdaemonmount.c
@@ -366,11 +366,12 @@ g_daemon_mount_guess_content_type_sync (GMount *mount,
GDaemonMount *daemon_mount = G_DAEMON_MOUNT (mount);
char **result;
- result = NULL;
G_LOCK (daemon_mount);
if (daemon_mount->mount_info->x_content_types != NULL &&
strlen (daemon_mount->mount_info->x_content_types) > 0)
result = g_strsplit (daemon_mount->mount_info->x_content_types, " ", 0);
+ else
+ result = g_new0 (char *, 1);
G_UNLOCK (daemon_mount);
return result;