mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Fixed error case to return error.
This commit is contained in:
parent
1c22fd031b
commit
9e7506770a
@ -150,6 +150,7 @@ nsJAR::GetEntry(const char *zipEntry, nsIZipEntry* *result)
|
||||
{
|
||||
nsZipItem item;
|
||||
PRInt32 err = mZip.GetItem(zipEntry, &item);
|
||||
if (err != 0) return NS_ERROR_FAILURE;
|
||||
|
||||
nsJARItem* jarItem = new nsJARItem();
|
||||
if (jarItem == nsnull)
|
||||
|
Loading…
Reference in New Issue
Block a user