Permalink
Browse files

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>
  • Loading branch information...
1 parent 4ab0088 commit 16bc4dd994b63c0e7d42d52b4e9d5d0abbe26ac0 Anthony Loiseau committed with ivoire Sep 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 projects/mozilla/vlcplugin.cpp
@@ -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]); */

0 comments on commit 16bc4dd

Please sign in to comment.