Bug 662125: Fix nsDocShell::ConfirmRepost to initialize a PRBool before passing it through XPConnect. r=bz

This commit is contained in:
Kyle Huey 2011-06-06 10:58:49 -07:00
parent 8721631cfa
commit 66beef1008

View File

@ -10676,7 +10676,9 @@ nsDocShell::ConfirmRepost(PRBool * aRepost)
if (NS_FAILED(rv)) return rv;
PRInt32 buttonPressed;
PRBool checkState;
// The actual value here is irrelevant, but we can't pass an invalid
// PRBool through XPConnect.
PRBool checkState = PR_FALSE;
rv = prompter->
ConfirmEx(nsnull, msgString.get(),
(nsIPrompt::BUTTON_POS_0 * nsIPrompt::BUTTON_TITLE_IS_STRING) +