1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-17 12:54:40 +00:00

fixed commandline bug: handling '-' as option when '--' unused

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2651 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-11-03 19:04:58 +00:00
parent 529ad9ff87
commit 0386dee16e

View File

@ -535,7 +535,7 @@ next:
goto next;
}
if ((no_more_opts == 0) && (*opt == '-')) /* option */
if ((no_more_opts == 0) && (*opt == '-') && (*(opt+1) != 0)) /* option */
{
/* remove trailing '-' */
opt++;