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)) {