From 158ed075a4b92f9a50d95998c518606fae9d14e8 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Thu, 11 Mar 1999 05:56:11 +0000 Subject: [PATCH] Patch from Bruce Mitchener (bruce@cybersight.com) that fixes unitialized memort error --- content/events/src/nsEventStateManager.cpp | 2 +- layout/events/src/nsEventStateManager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/events/src/nsEventStateManager.cpp b/content/events/src/nsEventStateManager.cpp index f9ba669cc501..5e7bde95716d 100644 --- a/content/events/src/nsEventStateManager.cpp +++ b/content/events/src/nsEventStateManager.cpp @@ -348,7 +348,7 @@ nsEventStateManager::CheckForAndDispatchClick(nsIPresContext& aPresContext, nsMouseEvent *aEvent, nsEventStatus& aStatus) { - nsresult ret; + nsresult ret = NS_OK; nsMouseEvent event; PRBool fireClick = PR_FALSE; diff --git a/layout/events/src/nsEventStateManager.cpp b/layout/events/src/nsEventStateManager.cpp index f9ba669cc501..5e7bde95716d 100644 --- a/layout/events/src/nsEventStateManager.cpp +++ b/layout/events/src/nsEventStateManager.cpp @@ -348,7 +348,7 @@ nsEventStateManager::CheckForAndDispatchClick(nsIPresContext& aPresContext, nsMouseEvent *aEvent, nsEventStatus& aStatus) { - nsresult ret; + nsresult ret = NS_OK; nsMouseEvent event; PRBool fireClick = PR_FALSE;