diff options
Diffstat (limited to 'lib/util/parmlist.c')
-rw-r--r-- | lib/util/parmlist.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/util/parmlist.c b/lib/util/parmlist.c index 0f2f3af8ee..b3e1e9fc48 100644 --- a/lib/util/parmlist.c +++ b/lib/util/parmlist.c @@ -74,11 +74,14 @@ const char **parmlist_get_string_list(struct parmlist *ctx, const char *name, const char *separator) { struct parmlist_entry *p = parmlist_get(ctx, name); + char **l; - if (p == NULL) + if (p == NULL) { return NULL; + } - return (const char **)str_list_make(ctx, p->value, separator); + l = str_list_make(ctx, p->value, separator); + return discard_const_p(const char *, l); } static struct parmlist_entry *parmlist_get_add(struct parmlist *ctx, const char *name) |