aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.c b/cfg.c
index fe1a551..c09f34e 100644
--- a/cfg.c
+++ b/cfg.c
@@ -391,7 +391,7 @@ char *cfg_get(const char *section, const char *key, const char *defval)
if (expression != NULL) {
if (*expression == '\0')
- return "";
+ return strdup("");
if (Compile(expression, &tree) == 0 && Eval(tree, &result) == 0) {
retval = strdup(R2S(&result));
DelTree(tree);