mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-27 05:10:20 +00:00
m_option: reallow setting list options to no value to -clr them
d2c409c56bbroke setting `--slang=` to effectively `-clr` the option. Restore the behavior because scripts rely on it. Fixes:d2c409c56b
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user