aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 327b3586..8dbf1619 100644
--- a/src/common.c
+++ b/src/common.c
@@ -653,7 +653,7 @@ unique_filename_from_url(const char* url, const char* path)
// Default to './' as path when none has been provided.
if (path == NULL) {
- realpath = "./";
+ realpath = strdup("./");
} else {
realpath = get_expanded_path(path);
}