From 759b3bdc4732158d724658f523c1ea7fae93cb08 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 15 May 2013 15:28:29 +0200 Subject: options: use case-sensitive comparsion for options This is better for consistency, and also allows using -V as alias for --version. --- core/m_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/m_config.c') 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; -- cgit v1.2.3