Mercurial > mplayer.hg
diff parser-mpcmd.c @ 13932:f845791e2823
fix: when doing -loop 0 -shuffle, the arg after shuffle was skipped
| author | reimar |
|---|---|
| date | Sun, 14 Nov 2004 11:09:56 +0000 |
| parents | 07dadc3066f3 |
| children | bef9d6dc2333 |
line wrap: on
line diff
--- a/parser-mpcmd.c Sun Nov 14 00:42:54 2004 +0000 +++ b/parser-mpcmd.c Sun Nov 14 11:09:56 2004 +0000 @@ -60,7 +60,6 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv) { int i,j,start_title=-1,end_title=-1; - int tmp = 0; char *opt,*splitpos=NULL; char entbuf[10]; int no_more_opts = 0; @@ -130,6 +129,7 @@ if ((no_more_opts == 0) && (*opt == '-') && (*(opt+1) != 0)) /* option */ { + int tmp = 0; /* remove trailing '-' */ opt++;
