summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
Diffstat (limited to 'macos.c')
-rw-r--r--macos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macos.c b/macos.c
index d37b0a925..d76225472 100644
--- a/macos.c
+++ b/macos.c
@@ -89,7 +89,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;