From 72d976b3c150425b678122e68bd98c9fd9d9fb92 Mon Sep 17 00:00:00 2001 From: llyyr Date: Thu, 30 Jan 2025 05:10:05 +0530 Subject: [PATCH] m_option: reallow setting list options to no value to -clr them d2c409c56b49252c85eefd340863fd59a36808d6 broke setting `--slang=` to effectively `-clr` the option. Restore the behavior because scripts rely on it. Fixes: d2c409c56b49252c85eefd340863fd59a36808d6 --- options/m_option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/m_option.c b/options/m_option.c index 1c2131e8fc..651b1be58b 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -1417,7 +1417,7 @@ static char **separate_input_param(const m_option_t *opt, bstr param, str = bstr_cut(str, 1); n++; } - if (n == 0) + if (n == 0 && op != OP_NONE) return NULL; char **list = talloc_array(NULL, char *, n + 2);