[Mplayer-cvslog] CVS: main cfgparser.c,1.31,1.32

Alex Beregszaszi alex at mplayer.dev.hu
Fri Nov 2 03:22:10 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv32708

Modified Files:
	cfgparser.c 
Log Message:
fixed fault with --help

Index: cfgparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/cfgparser.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- cfgparser.c	2 Nov 2001 02:02:52 -0000	1.31
+++ cfgparser.c	2 Nov 2001 02:21:57 -0000	1.32
@@ -521,7 +521,8 @@
 	for (i = 1; i < argc; i++) {
 next:
 		opt = argv[i];
-		if ((*opt == '-') && (*(opt+1) == '-'))
+		/* check for -- (no more options id.) except --help ! */
+		if ((*opt == '-') && (*(opt+1) == '-') && (*(opt+2) != 'h'))
 		{
 			no_more_opts = 1;
 //			printf("no more opts! %d\n",i);




More information about the MPlayer-cvslog mailing list