summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-12-01 21:01:40 +0100
committerwm4 <wm4@nowhere>2017-12-01 21:01:40 +0100
commit43af055a70a7b604e1e936575213aa561ac915d1 (patch)
tree5ad71fed4edf21a9b3154e0f2ac6ea3deb58754b /options
parent8b141ab9aca946da99ad17e442020672b664c8b4 (diff)
downloadmpv-43af055a70a7b604e1e936575213aa561ac915d1.tar.bz2
mpv-43af055a70a7b604e1e936575213aa561ac915d1.tar.xz
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.
Diffstat (limited to 'options')
-rw-r--r--options/m_option.c3
1 files changed, 0 insertions, 3 deletions
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);