]> git.sesse.net Git - vlc/commitdiff
qt4: remove a dummy call to var_Get (void variable), fix #3346.
authorRémi Duraffort <ivoire@videolan.org>
Fri, 26 Feb 2010 18:45:08 +0000 (19:45 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 26 Feb 2010 18:48:08 +0000 (19:48 +0100)
modules/gui/qt4/menus.cpp

index 52264d5fdf7eb32c622d184cdcfc1bf738229b65..e41b42e36084845fe80cac7f55f67c006d6e9e7c 100644 (file)
@@ -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;