[Libreoffice-commits] core.git: vcl/source

Tomaž Vajngerl quikee at gmail.com
Sat Nov 30 09:39:30 PST 2013


 vcl/source/window/menu.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b99bee2b0c4e1a8e495d122d2c64c75b94e0026d
Author: Tomaž Vajngerl <quikee at gmail.com>
Date:   Sat Nov 30 18:38:39 2013 +0100

    WaE: ‘nPos’ may be used uninitialized in this function
    
    Change-Id: I993492fa3c3355eeb8d57b4262e176bc2f439f7e

diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 2a83c97..647f57c 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);


More information about the Libreoffice-commits mailing list