From 28227a5fcbd2d62b5ac05f6c67d7c8bc99d96630 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Mon, 13 Sep 1999 03:15:23 +0000 Subject: [PATCH] fixed an uninitialized variabled error. the result code in Reflow is now initialized to NS_OK, because it's not used in all reflow paths. git-svn-id: svn://10.0.0.236/trunk@47087 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp b/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp index a1593441050..9ad85c046da 100644 --- a/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp @@ -892,7 +892,7 @@ nsGfxTextControlFrame::Reflow(nsIPresContext& aPresContext, // calculate the the desired size for the text control // use the suggested size if it has been set - nsresult rv; + nsresult rv = NS_OK; nsHTMLReflowState suggestedReflowState(aReflowState); if ((kSuggestedNotSet != mSuggestedWidth) || (kSuggestedNotSet != mSuggestedHeight)) {