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

git version control git at videolan.org
Wed Sep 16 18:41:00 CEST 2009


vlc | branch: 1.0-bugfix | Anthony Loiseau <thannoy at actech-innovation.com> | Wed Sep 16 09:53:01 2009 +0200| [dae373f714a5f748e8c5293b6fd4c0923e894f86] | 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>
(cherry picked from commit 16bc4dd994b63c0e7d42d52b4e9d5d0abbe26ac0)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

 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 6b86472..6fe41a2 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -133,7 +133,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