From db9f6aad6be449583eb4c3b2571d5031932a6a26 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 7 Oct 2008 17:24:37 -0400 Subject: [PATCH] Fixing build warnings due to us null-checking a pointer that's never null. No bug. --- intl/unicharutil/util/nsCompressedCharMap.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/intl/unicharutil/util/nsCompressedCharMap.cpp b/intl/unicharutil/util/nsCompressedCharMap.cpp index 1e8704583444..4801c372c7c5 100644 --- a/intl/unicharutil/util/nsCompressedCharMap.cpp +++ b/intl/unicharutil/util/nsCompressedCharMap.cpp @@ -572,8 +572,9 @@ MapToCCMapExt(PRUint32* aBmpPlaneMap, PRUint32** aOtherPlaneMaps, PRUint32 aOthe for (i = 0; i < aOtherPlaneNum; i++) { if (aOtherPlaneMaps[i]) { otherPlaneObj[i] = new nsCompressedCharMap(); - NS_ASSERTION(otherPlaneObj, "unable to create new nsCompressedCharMap"); - if(otherPlaneObj) { + NS_ASSERTION(otherPlaneObj[i], + "unable to create new nsCompressedCharMap"); + if(otherPlaneObj[i]) { otherPlaneObj[i]->SetChars(aOtherPlaneMaps[i]); totalSize += otherPlaneObj[i]->GetSize(); }