From d785059238abf7ee28aec1b6555dcd38c5b6c61f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 24 May 2012 16:37:17 +0100 Subject: WaE: nPos potentially uninitialized with gcc 4.7.0 Change-Id: Ie02cf6154b7536a46cd3753c526f7c390e57a40e --- vcl/source/window/menu.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source') diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 04619eb545a2..3f695bda99dd 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -3563,7 +3563,7 @@ void PopupMenu::SelectEntry( sal_uInt16 nId ) { if( nId != ITEMPOS_INVALID ) { - size_t nPos; + size_t nPos = 0; MenuItemData* pData = GetItemList()->GetData( nId, nPos ); if ( pData->pSubMenu ) ImplGetFloatingWindow()->ChangeHighlightItem( nPos, sal_True ); -- cgit