From: RĂ©mi Duraffort Date: Fri, 26 Feb 2010 18:45:08 +0000 (+0100) Subject: qt4: remove a dummy call to var_Get (void variable), fix #3346. X-Git-Tag: 1.1.0-pre1~660 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6715011684a800b49ce98f50fb0027ee0fffb2a7;p=vlc qt4: remove a dummy call to var_Get (void variable), fix #3346. --- diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp index 52264d5fdf..e41b42e360 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;