summaryrefslogtreecommitdiffstats
path: root/linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux.c')
-rw-r--r--linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux.c b/linux.c
index 8d9f6f8ce..47a00a059 100644
--- a/linux.c
+++ b/linux.c
@@ -69,7 +69,7 @@ const char *subsurface_icon_name()
const char *subsurface_default_filename()
{
if (default_filename) {
- return default_filename;
+ return strdup(default_filename);
} else {
const char *home, *user;
char *buffer;