diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2008-11-04 13:59:39 +0000 |
---|---|---|
committer | Tomas Bzatek <tbzatek@src.gnome.org> | 2008-11-04 13:59:39 +0000 |
commit | 7c39be4b04582011233b466f6cfdebec11e8f425 (patch) | |
tree | c85df877c784e06496ac1ec2bddcfb101c45ef98 /client | |
parent | 58f70c9f5c10f0cc708dee27e9fde01f20948b06 (diff) | |
download | gvfs-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
Diffstat (limited to 'client')
-rw-r--r-- | client/gdaemonmount.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |