bug 485511, Firefox crashes in nsExtensibleStringBundle::FormatStringFromName, p=rcampbell, r=smontagu, sr=shaver

This commit is contained in:
Rob Campbell 2009-04-02 14:12:38 -03:00
parent 1de36e4fad
commit 7e6730bd73

View File

@ -517,7 +517,10 @@ nsExtensibleStringBundle::FormatStringFromName(const PRUnichar *aName,
PRUnichar ** aResult)
{
nsXPIDLString formatStr;
GetStringFromName(aName, getter_Copies(formatStr));
nsresult rv;
rv = GetStringFromName(aName, getter_Copies(formatStr));
if (NS_FAILED(rv))
return rv;
return nsStringBundle::FormatString(formatStr, aParams, aLength, aResult);
}