summaryrefslogtreecommitdiffstats
path: root/m_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'm_config.c')
-rw-r--r--m_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/m_config.c b/m_config.c
index 0f5151aed5..914bfcecb7 100644
--- a/m_config.c
+++ b/m_config.c
@@ -308,10 +308,10 @@ m_config_add_option(m_config_t *config, const m_option_t *arg, const char* prefi
co->opt = arg;
// Fill in the full name
- if(prefix && strlen(prefix) > 0) {
+ if (prefix && *prefix)
co->name = talloc_asprintf(co, "%s:%s", prefix, arg->name);
- } else
- co->name = arg->name;
+ else
+ co->name = (char *)arg->name;
// Option with children -> add them
if(arg->type->flags & M_OPT_TYPE_HAS_CHILD) {