From 6c3a42c78cd44517101eba72235093bdfd343dfc Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Fri, 22 Mar 2002 04:19:10 +0000 Subject: [PATCH] Fix for 99324 -- initializing variables, patch by mhammond@skippinet.com.au, r=av, sr=beard, a=scc git-svn-id: svn://10.0.0.236/trunk@117149 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsObjectFrame.cpp | 6 +++--- mozilla/layout/html/base/src/nsObjectFrame.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/layout/generic/nsObjectFrame.cpp b/mozilla/layout/generic/nsObjectFrame.cpp index 2b463215b5c..637a91c624f 100644 --- a/mozilla/layout/generic/nsObjectFrame.cpp +++ b/mozilla/layout/generic/nsObjectFrame.cpp @@ -1618,7 +1618,7 @@ nsObjectFrame::Paint(nsIPresContext* aPresContext, npprint.mode = nsPluginMode_Embedded; // we need to find out if we are windowless or not - PRBool windowless; + PRBool windowless = PR_FALSE; pi->GetValue(nsPluginInstanceVariable_WindowlessBool, (void *)&windowless); window.type = windowless ? nsPluginWindowType_Drawable : nsPluginWindowType_Window; @@ -3573,7 +3573,7 @@ NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget(void) if (nsnull == view || nsnull == mWidget) { - PRBool windowless; + PRBool windowless = PR_FALSE; mInstance->GetValue(nsPluginInstanceVariable_WindowlessBool, (void *)&windowless); @@ -3589,7 +3589,7 @@ NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget(void) if (view) { view->GetWidget(mWidget); - PRBool fTransparent; + PRBool fTransparent = PR_FALSE; mInstance->GetValue(nsPluginInstanceVariable_TransparentBool, (void *)&fTransparent); nsCOMPtr vm; diff --git a/mozilla/layout/html/base/src/nsObjectFrame.cpp b/mozilla/layout/html/base/src/nsObjectFrame.cpp index 2b463215b5c..637a91c624f 100644 --- a/mozilla/layout/html/base/src/nsObjectFrame.cpp +++ b/mozilla/layout/html/base/src/nsObjectFrame.cpp @@ -1618,7 +1618,7 @@ nsObjectFrame::Paint(nsIPresContext* aPresContext, npprint.mode = nsPluginMode_Embedded; // we need to find out if we are windowless or not - PRBool windowless; + PRBool windowless = PR_FALSE; pi->GetValue(nsPluginInstanceVariable_WindowlessBool, (void *)&windowless); window.type = windowless ? nsPluginWindowType_Drawable : nsPluginWindowType_Window; @@ -3573,7 +3573,7 @@ NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget(void) if (nsnull == view || nsnull == mWidget) { - PRBool windowless; + PRBool windowless = PR_FALSE; mInstance->GetValue(nsPluginInstanceVariable_WindowlessBool, (void *)&windowless); @@ -3589,7 +3589,7 @@ NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget(void) if (view) { view->GetWidget(mWidget); - PRBool fTransparent; + PRBool fTransparent = PR_FALSE; mInstance->GetValue(nsPluginInstanceVariable_TransparentBool, (void *)&fTransparent); nsCOMPtr vm;