mirror of
https://github.com/mpv-player/mpv
synced 2024-10-22 08:51:57 +02:00
Move variable declaration into block where it is used and make it const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29602 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7d0270087d
commit
1cd2feed03
@ -252,7 +252,6 @@ int m_config_preparse_command_line(m_config_t *config, int argc, char **argv)
|
||||
{
|
||||
int msg_lvl, i, r, ret = 0;
|
||||
char* arg;
|
||||
m_option_t* opt;
|
||||
|
||||
// Hack to shutup the parser error messages.
|
||||
msg_lvl = mp_msg_levels[MSGT_CFGPARSER];
|
||||
@ -261,6 +260,7 @@ int m_config_preparse_command_line(m_config_t *config, int argc, char **argv)
|
||||
config->mode = M_COMMAND_LINE_PRE_PARSE;
|
||||
|
||||
for(i = 1 ; i < argc ; i++) {
|
||||
const m_option_t* opt;
|
||||
arg = argv[i];
|
||||
// Ignore non option
|
||||
if(arg[0] != '-' || arg[1] == 0) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user