diff options
author | wm4 <wm4@nowhere> | 2013-05-15 15:28:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-15 15:30:06 +0200 |
commit | 759b3bdc4732158d724658f523c1ea7fae93cb08 (patch) | |
tree | a24ed4fed7a35b30a8da268ac1e0aba384bcc520 /core/m_config.c | |
parent | 894288457bb035127c7459c462bd711c6080572f (diff) | |
download | mpv-759b3bdc4732158d724658f523c1ea7fae93cb08.tar.bz2 mpv-759b3bdc4732158d724658f523c1ea7fae93cb08.tar.xz |
options: use case-sensitive comparsion for options
This is better for consistency, and also allows using -V as alias
for --version.
Diffstat (limited to 'core/m_config.c')
-rw-r--r-- | core/m_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/m_config.c b/core/m_config.c index 3781a92b90..336af39447 100644 --- a/core/m_config.c +++ b/core/m_config.c @@ -442,9 +442,9 @@ struct m_config_option *m_config_get_co(const struct m_config *config, if ((co->opt->type->flags & M_OPT_TYPE_ALLOW_WILDCARD) && bstr_endswith0(coname, "*")) { coname.len--; - if (bstrcasecmp(bstr_splice(name, 0, coname.len), coname) == 0) + if (bstrcmp(bstr_splice(name, 0, coname.len), coname) == 0) return co; - } else if (bstrcasecmp(coname, name) == 0) + } else if (bstrcmp(coname, name) == 0) return co; } return NULL; |