[Mplayer-cvslog] CVS: main parser-mpcmd.c,1.2,1.3
Arpi of Ize
arpi at mplayerhq.hu
Sat Dec 7 21:59:52 CET 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv23438
Modified Files:
parser-mpcmd.c
Log Message:
10l noticed by "Puk Madick" <pingy at swirvemail.com>
Index: parser-mpcmd.c
===================================================================
RCS file: /cvsroot/mplayer/main/parser-mpcmd.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- parser-mpcmd.c 12 Nov 2002 23:41:32 -0000 1.2
+++ parser-mpcmd.c 7 Dec 2002 20:59:33 -0000 1.3
@@ -215,7 +215,7 @@
(! last_entry || last_entry->child) ) {
int l;
char* end;
- l = strtol(argv[i+1],&end,0);
+ l = (i+1<argc) ? strtol(argv[i+1],&end,0) : 0;
if(!end)
tmp = ERR_OUT_OF_RANGE;
else {
More information about the MPlayer-cvslog
mailing list