summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/config/confdata.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/config/confdata.c b/extra/config/confdata.c
index 281dd0024..2b848d5d0 100644
--- a/extra/config/confdata.c
+++ b/extra/config/confdata.c
@@ -402,6 +402,8 @@ int conf_write(const char *name)
char *env;
dirname[0] = 0;
+ if (name == NULL)
+ name = conf_get_configname();
if (name && name[0]) {
struct stat st;
char *slash;