[vlc-devel] commit: mozilla: fix stop condition of a for iteration (Anthony Loiseau )

git version control git at videolan.org
Wed Sep 16 18:25:51 CEST 2009


vlc | branch: master | Anthony Loiseau <thannoy at actech-innovation.com> | Wed Sep 16 09:53:01 2009 +0200| [16bc4dd994b63c0e7d42d52b4e9d5d0abbe26ac0] | committer: Rémi Duraffort 

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 at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=16bc4dd994b63c0e7d42d52b4e9d5d0abbe26ac0
---

 projects/mozilla/vlcplugin.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index d1e82e1..bc3fd3b 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/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]); */
 




More information about the vlc-devel mailing list