aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/MozDownload.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index 4b29b8172..efe13ab88 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -515,10 +515,11 @@ GetFilePath (const char *filename)
}
else
{
- path = g_build_filename
- (gnome_vfs_expand_initial_tilde (download_dir),
- filename,
- NULL);
+ char *expanded;
+
+ expanded = gnome_vfs_expand_initial_tilde (download_dir);
+ path = g_build_filename (expanded, filename, NULL);
+ g_free (expanded);
}
g_free (download_dir);