summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/gdaemonmount.c3
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;