[vlc-devel] commit: qt4: remove a dummy call to var_Get (void variable), fix #3346. ( Rémi Duraffort )

git version control git at videolan.org
Fri Feb 26 19:48:19 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Feb 26 19:45:08 2010 +0100| [6715011684a800b49ce98f50fb0027ee0fffb2a7] | committer: Rémi Duraffort 

qt4: remove a dummy call to var_Get (void variable), fix #3346.

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

 modules/gui/qt4/menus.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 52264d5..e41b42e 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1285,7 +1285,7 @@ void QVLCMenu::UpdateItem( intf_thread_t *p_intf, QMenu *menu,
     switch( i_type & VLC_VAR_TYPE )
     {
         case VLC_VAR_VOID:
-            var_Get( p_object, psz_var, &val );
+            val.i_int = 0;  // Prevent the copy of an uninitialized value
             CreateAndConnect( menu, psz_var, TEXT_OR_VAR, "", ITEM_NORMAL,
                     p_object, val, i_type );
             break;




More information about the vlc-devel mailing list