buttons could be used initialized if locking the looper failed (CID 1134)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27440 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2008-09-12 08:09:13 +00:00
parent fc16834e55
commit 2e2bff94a9
+1 -1
View File
@@ -1407,7 +1407,7 @@ BMenu::_Track(int *action, long start)
fSuper->fState = MENU_STATE_TRACKING_SUBMENU;
BPoint location;
uint32 buttons;
uint32 buttons = 0;
if (LockLooper()) {
GetMouse(&location, &buttons);
UnlockLooper();