From f38f773af0823c2745c497681adfcede558b6e5c Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 24 Sep 2003 01:48:09 +0000 Subject: [PATCH] Bug 220060 Crash using nsJar w/ null mZipFile r=darin sr=darin --- modules/libjar/nsJAR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/libjar/nsJAR.cpp b/modules/libjar/nsJAR.cpp index d3f6a260bf4e..dd5e42ea13a1 100644 --- a/modules/libjar/nsJAR.cpp +++ b/modules/libjar/nsJAR.cpp @@ -206,7 +206,7 @@ NS_IMETHODIMP nsJAR::GetFile(nsIFile* *result) { *result = mZipFile; - NS_ADDREF(*result); + NS_IF_ADDREF(*result); return NS_OK; }