[vlc-commits] Qt: Avoid uninitialized records in option array

Hugo Beauzée-Luyssen git at videolan.org
Thu May 22 12:32:47 CEST 2014


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu May 22 12:41:22 2014 +0300| [1ad673fb5f5d5f3b939b2d065c299c356e464a4b] | committer: Jean-Baptiste Kempf

Qt: Avoid uninitialized records in option array

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/recents.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/recents.cpp b/modules/gui/qt4/recents.cpp
index 8433a13..d2294a9 100644
--- a/modules/gui/qt4/recents.cpp
+++ b/modules/gui/qt4/recents.cpp
@@ -221,7 +221,7 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf,
         for( int j = 0; j < options->count(); j++ ) {
             QString option = colon_unescape( options->at(j) );
             if( !option.isEmpty() ) {
-                ppsz_options[j] = strdup(qtu(option));
+                ppsz_options[i_options] = strdup(qtu(option));
                 i_options++;
             }
         }



More information about the vlc-commits mailing list