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:31:51 +0200
commitb8bad36e40339905aa6b5bc50694d45672b67660 (patch)
tree83c28c8915afe7398aadc3afce12c4c89d748469
parent290797b1d0cd08eb6052951f1141b706ea7d3afc (diff)
downloadgvfs-b8bad36e40339905aa6b5bc50694d45672b67660.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 290033e5..03fce27a 100644
--- a/common/gvfsmountinfo.c
+++ b/common/gvfsmountinfo.c
@@ -533,7 +533,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));