Fixed error case to return error.

This commit is contained in:
warren%netscape.com 2000-01-27 09:21:00 +00:00
parent 1c22fd031b
commit 9e7506770a

View File

@ -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)