mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
bug 485511, Firefox crashes in nsExtensibleStringBundle::FormatStringFromName, p=rcampbell, r=smontagu, sr=shaver
This commit is contained in:
parent
1de36e4fad
commit
7e6730bd73
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user