summaryrefslogtreecommitdiffstats
path: root/core/m_option.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/m_option.c')
-rw-r--r--core/m_option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/m_option.c b/core/m_option.c
index 2f6160c538..1d6c49e851 100644
--- a/core/m_option.c
+++ b/core/m_option.c
@@ -2205,7 +2205,7 @@ static int parse_obj_settings_list(const m_option_t *opt, struct bstr name,
num++;
}
- if (op != OP_NONE && param.len == 0)
+ if (op != OP_NONE && num == 0)
return M_OPT_MISSING_PARAM;
if (dst) {