diff options
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/m_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpvcore/m_config.c b/mpvcore/m_config.c index 463fc8e6f7..a938eb843b 100644 --- a/mpvcore/m_config.c +++ b/mpvcore/m_config.c @@ -461,13 +461,13 @@ struct m_config_option *m_config_get_co(const struct m_config *config, return NULL; } -const char *m_config_get_positional_option(const struct m_config *config, int n) +const char *m_config_get_positional_option(const struct m_config *config, int p) { int pos = 0; for (int n = 0; n < config->num_opts; n++) { struct m_config_option *co = &config->opts[n]; if (!co->is_generated) { - if (pos == n) + if (pos == p) return co->name; pos++; } |