From 43af055a70a7b604e1e936575213aa561ac915d1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Dec 2017 21:01:40 +0100 Subject: options: rename empty string special case for option values "--bla" behaved differently from "--bla=". Change this, in line with how options have been changed in general over the last few years. --- options/m_option.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'options') diff --git a/options/m_option.c b/options/m_option.c index 9472f3c870..dae497a1a0 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -995,9 +995,6 @@ static int clamp_str(const m_option_t *opt, void *val) static int parse_str(struct mp_log *log, const m_option_t *opt, struct bstr name, struct bstr param, void *dst) { - if (param.start == NULL) - return M_OPT_MISSING_PARAM; - m_opt_string_validate_fn validate = opt->priv; if (validate) { int r = validate(log, opt, name, param); -- cgit v1.2.3