[Mplayer-cvslog] CVS: 0_90 parser-cfg.c,1.2,1.3
Arpi of Ize
arpi at mplayerhq.hu
Fri Jun 6 21:33:17 CEST 2003
Update of /cvsroot/mplayer/0_90
In directory mail:/var/tmp.root/cvs-serv2924
Modified Files:
parser-cfg.c
Log Message:
a missing parameter on mp_msg meant it crashed instead
of printing a nice message if you put entries in the
config with no parameter.
Alex Sisson <alex_sisson at yahoo.co.uk>
Index: parser-cfg.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/parser-cfg.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- parser-cfg.c 17 Mar 2003 00:56:23 -0000 1.2
+++ parser-cfg.c 6 Jun 2003 19:33:15 -0000 1.3
@@ -121,7 +121,7 @@
/* check '=' */
if (line[line_pos++] != '=') {
PRINT_LINENUM;
- mp_msg(MSGT_CFGPARSER,MSGL_ERR,"Option %s need a parameter at line %d\n",line_num);
+ mp_msg(MSGT_CFGPARSER,MSGL_ERR,"Option %s needs a parameter at line %d\n",opt,line_num);
ret = -1;
errors++;
continue;
@@ -164,7 +164,7 @@
/* did we read a parameter? */
if (param_pos == 0) {
PRINT_LINENUM;
- mp_msg(MSGT_CFGPARSER,MSGL_ERR,"Option %s need a parameter at line %d\n",opt,line_num);
+ mp_msg(MSGT_CFGPARSER,MSGL_ERR,"Option %s needs a parameter at line %d\n",opt,line_num);
ret = -1;
errors++;
continue;
More information about the MPlayer-cvslog
mailing list