From 1adf408be14aa080f90662fafcb55b154e89974a Mon Sep 17 00:00:00 2001 From: "pierre%netscape.com" Date: Mon, 15 Jan 2001 14:26:30 +0000 Subject: [PATCH] Initializes a menuHandle to nil before sending it in an event. I don't have a bug report for that. I don't even remember what it is for. This fix has been sitting for months in my tree. --- widget/src/mac/nsMenuBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/mac/nsMenuBar.cpp b/widget/src/mac/nsMenuBar.cpp index f6ab61f4b6be..5863ea86bfcd 100644 --- a/widget/src/mac/nsMenuBar.cpp +++ b/widget/src/mac/nsMenuBar.cpp @@ -624,7 +624,7 @@ NS_METHOD nsMenuBar::Paint() menu->IsHelpMenu(&isHelpMenu); if (isHelpMenu) { - MenuHandle helpMenuHandle; + MenuHandle helpMenuHandle = nil; #if !TARGET_CARBON ::HMGetHelpMenuHandle(&helpMenuHandle); menu->SetNativeData((void*)helpMenuHandle);