Bug 813705 - Initialize nsresult value before possibly using it. r=roc

This commit is contained in:
Josh Matthews 2012-11-20 15:59:36 -05:00
parent a25d4c92d6
commit 61dcdd2a9e

View File

@ -414,7 +414,7 @@ nsPresContext::GetFontPrefsForLang(nsIAtom *aLanguage) const
{
// Get language group for aLanguage:
nsresult rv;
nsresult rv = NS_OK;
nsIAtom *langGroupAtom = nullptr;
if (!aLanguage) {
aLanguage = mLanguage;