summaryrefslogtreecommitdiffstats
path: root/m_option.c
diff options
context:
space:
mode:
Diffstat (limited to 'm_option.c')
-rw-r--r--m_option.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/m_option.c b/m_option.c
index 2ad80f6eef..3f300326ca 100644
--- a/m_option.c
+++ b/m_option.c
@@ -746,13 +746,11 @@ static void free_str_list(void *dst)
static int str_list_add(char **add, int n, void *dst, int pre)
{
- char **lst = VAL(dst);
- int ln;
-
if (!dst)
return M_OPT_PARSER_ERR;
- lst = VAL(dst);
+ char **lst = VAL(dst);
+ int ln;
for (ln = 0; lst && lst[ln]; ln++)
/**/;