From b99bee2b0c4e1a8e495d122d2c64c75b94e0026d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Vajngerl?= Date: Sat, 30 Nov 2013 18:38:39 +0100 Subject: [PATCH] =?UTF-8?q?WaE:=20=E2=80=98nPos=E2=80=99=20may=20be=20used?= =?UTF-8?q?=20uninitialized=20in=20this=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I993492fa3c3355eeb8d57b4262e176bc2f439f7e --- vcl/source/window/menu.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 2a83c97424c0..647f57c29a3d 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -3696,7 +3696,7 @@ sal_uInt16 PopupMenu::ImplExecute( Window* pW, const Rectangle& rRect, sal_uLong OUString aTmpEntryText( ResId( SV_RESID_STRING_NOSELECTIONPOSSIBLE, *pResMgr ) ); MenuItemData* pData = pItemList->Insert( 0xFFFF, MENUITEM_STRING, 0, aTmpEntryText, Image(), NULL, 0xFFFF, OString() ); - size_t nPos; + size_t nPos = 0; pData = pItemList->GetData( pData->nId, nPos ); pData->bIsTemporary = true; ImplCallEventListeners(VCLEVENT_MENU_SUBMENUCHANGED, nPos);