summaryrefslogtreecommitdiff
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 15:29:39 +0200
commit14985f3018d4e0a3fdbf055ca5b930cfe345ec9c (patch)
tree71f4c588ba13c66c21bc470947ed3c18a2971e41
parent917c270a1296f02a6caa3cc62f83a46dafd8eb2a (diff)
downloadgvfs-14985f3018d4e0a3fdbf055ca5b930cfe345ec9c.tar.gz
common: Fix potential crash caused by missing g_strdup
https://bugzilla.gnome.org/show_bug.cgi?id=747412
-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));