1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00

mozilla: fix stop condition of a for iteration

When second argument of a for statement is a sequence,
firsts expressions are evaluated as void with no usage
of their return value.

Signed-off-by: Rémi Duraffort <ivoire@videolan.org>
This commit is contained in:
Anthony Loiseau 2009-09-16 09:53:01 +02:00 committed by Rémi Duraffort
parent 4ab00885f9
commit 16bc4dd994

View File

@ -134,7 +134,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
const char *progid = NULL;
/* parse plugin arguments */
for( int i = 0; i < argc , ppsz_argc < 32; i++ )
for( int i = 0; (i < argc) && (ppsz_argc < 32); i++ )
{
/* fprintf(stderr, "argn=%s, argv=%s\n", argn[i], argv[i]); */