mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
fixes bug 317615 "nsStringBundle is too noisy when given an invalid URL" r=bsmedberg
This commit is contained in:
parent
8b3ba75111
commit
fc4cf74f2f
@ -244,7 +244,7 @@ nsStringBundle::GetStringFromID(PRInt32 aID, PRUnichar **aResult)
|
||||
{
|
||||
nsresult rv;
|
||||
rv = LoadProperties();
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
*aResult = nsnull;
|
||||
nsAutoString tmpstr;
|
||||
@ -267,7 +267,7 @@ nsStringBundle::GetStringFromName(const PRUnichar *aName, PRUnichar **aResult)
|
||||
|
||||
nsresult rv;
|
||||
rv = LoadProperties();
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsAutoCMonitor(this);
|
||||
*aResult = nsnull;
|
||||
|
Loading…
Reference in New Issue
Block a user