aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/conf.c b/src/conf.c
index f8ee5519a..f71ace7f2 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -376,12 +376,13 @@ config_get_next_param(const char *name, struct config_param * last)
return param;
}
-char *getConfigParamValue(const char *name)
+const char *
+config_get_string(const char *name, const char *default_value)
{
struct config_param *param = config_get_param(name);
- if (!param)
- return NULL;
+ if (param == NULL)
+ return default_value;
return param->value;
}