summaryrefslogtreecommitdiff
path: root/gtk/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gui.c')
-rw-r--r--gtk/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gui.c b/gtk/gui.c
index 200135cf5..36a3de888 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -287,7 +287,7 @@ static void check_options(char **respath)
if (nsoption_charp(downloads_directory) == NULL) {
LOG(("Using '%s' as download directory", hdir));
- nsoption_set_charp(downloads_directory, hdir);
+ nsoption_set_charp(downloads_directory, strdup(hdir));
}
filepath_sfinddef(respath, buf, "icons/", "~/.netsurf/");