diff options
author | wm4 <wm4@nowhere> | 2017-09-22 11:31:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-09-22 11:31:23 +0200 |
commit | 0b5c1d29121cef9706008a20cc7756e3cfc40f1e (patch) | |
tree | 5e9a500332e32abf3927026e2ca713bfbf0ee352 /options/m_config.c | |
parent | fba927de415d1541b242cc628b3ff3c09cec46bd (diff) | |
download | mpv-0b5c1d29121cef9706008a20cc7756e3cfc40f1e.tar.bz2 mpv-0b5c1d29121cef9706008a20cc7756e3cfc40f1e.tar.xz |
m_config: better variable name
Diffstat (limited to 'options/m_config.c')
-rw-r--r-- | options/m_config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/options/m_config.c b/options/m_config.c index 82b6088c12..9a18cde26f 100644 --- a/options/m_config.c +++ b/options/m_config.c @@ -835,14 +835,14 @@ static struct m_config_option *m_config_mogrify_cli_opt(struct m_config *config, // matches. (We don't allow you to combine them with "--no-".) for (int n = 0; n < config->num_opts; n++) { co = &config->opts[n]; - struct bstr coname = bstr0(co->name); + struct bstr basename = bstr0(co->name); - if (!bstr_startswith(*name, coname)) + if (!bstr_startswith(*name, basename)) continue; // Aliased option + a suffix action, e.g. --opengl-shaders-append if (co->opt->type == &m_option_type_alias) - co = m_config_get_co_any(config, coname); + co = m_config_get_co_any(config, basename); if (!co) continue; @@ -852,8 +852,8 @@ static struct m_config_option *m_config_mogrify_cli_opt(struct m_config *config, bstr suffix = bstr0(action->name); if (bstr_endswith(*name, suffix) && - (name->len == coname.len + 1 + suffix.len) && - name->start[coname.len] == '-') + (name->len == basename.len + 1 + suffix.len) && + name->start[basename.len] == '-') { *out_add_flags = action->flags; return co; |