From e4b9a0a0feb51f6be938b7368fc264d67d702553 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 30 Oct 2004 17:50:12 +0000 Subject: Init variable --- embed/mozilla/EventContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embed/mozilla/EventContext.cpp') diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index 03c18922d..1abaca313 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -577,7 +577,7 @@ nsresult EventContext::GetCSSBackground (nsIDOMNode *node, nsAString& url) nsresult EventContext::GetMouseEventInfo (nsIDOMMouseEvent *aMouseEvent, MozillaEmbedEvent *info) { /* FIXME: casting 32-bit guint* to PRUint16* below will break on big-endian */ - PRUint16 btn; + PRUint16 btn = (PRUint16) -1; aMouseEvent->GetButton (&btn); switch (btn) -- cgit v1.2.3