summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2017-03-27 19:06:00 +0200
committerOndrej Holy <oholy@redhat.com>2017-03-28 12:17:41 +0200
commit847787159f65cc612f3e4aee634c4bb127e9da96 (patch)
tree98f35d3f4d91199d96738aaa606ad2f350f5d13b /common
parentd19196707a517fcbcabe2a98c9574a0aee9d1f91 (diff)
downloadgvfs-847787159f65cc612f3e4aee634c4bb127e9da96.tar.gz
common: Fix potential crash caused by missing g_strdup
https://bugzilla.gnome.org/show_bug.cgi?id=747412
Diffstat (limited to 'common')
-rw-r--r--common/gvfsmountinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/gvfsmountinfo.c b/common/gvfsmountinfo.c
index e3350c19..0d1f3267 100644
--- a/common/gvfsmountinfo.c
+++ b/common/gvfsmountinfo.c
@@ -544,7 +544,7 @@ bdmv_metadata_thread (GSimpleAsyncResult *result,
meta = bd_get_meta (bd);
if (meta != NULL && name == NULL && meta->di_name && *meta->di_name)
- name = meta->di_name;
+ name = g_strdup (meta->di_name);
if (meta != NULL && icon == NULL)
icon = g_strdup (get_icon (meta));