From 091571b689395e445a6286ed2f3fe48147f031aa Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Tue, 25 Mar 2003 02:30:24 +0000 Subject: [PATCH] Bug 198861 valgrind nsWindow::Resize uses unitialized value: mShown r=biesi sr=tor git-svn-id: svn://10.0.0.236/trunk@140202 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/xlib/nsWidget.h | 1 - mozilla/widget/src/xlib/nsWindow.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mozilla/widget/src/xlib/nsWidget.h b/mozilla/widget/src/xlib/nsWidget.h index e5829d1c8f2..4e8c584972e 100644 --- a/mozilla/widget/src/xlib/nsWidget.h +++ b/mozilla/widget/src/xlib/nsWidget.h @@ -210,7 +210,6 @@ protected: PRBool WidgetVisible (nsRect &aBounds); PRBool mIsShown; - PRBool mShown; int mVisibility; // this is an int because that's the way X likes it PRUint32 mPreferredWidth; PRUint32 mPreferredHeight; diff --git a/mozilla/widget/src/xlib/nsWindow.cpp b/mozilla/widget/src/xlib/nsWindow.cpp index fd2eefb1f8f..d6d9745ceef 100644 --- a/mozilla/widget/src/xlib/nsWindow.cpp +++ b/mozilla/widget/src/xlib/nsWindow.cpp @@ -454,7 +454,7 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth, if (mIsTooSmall) { // if we are not shown, we don't want to force a show here, so check and see if Show(TRUE) has been called - NeedToShow = mShown; + NeedToShow = mIsShown; mIsTooSmall = PR_FALSE; } }