From be789f7ed06fc04fd61cb6164aa17f6bac1ab898 Mon Sep 17 00:00:00 2001 From: "jband%netscape.com" Date: Mon, 2 Aug 1999 01:44:18 +0000 Subject: [PATCH] fixing runtime crash for arielb - was shadowing a member with a local in the ctor --- caps/src/nsPrincipalArray.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/caps/src/nsPrincipalArray.cpp b/caps/src/nsPrincipalArray.cpp index 670ef45febe..da28a7a6d3b 100644 --- a/caps/src/nsPrincipalArray.cpp +++ b/caps/src/nsPrincipalArray.cpp @@ -10,8 +10,9 @@ nsPrincipalArray::nsPrincipalArray(void) nsPrincipalArray::nsPrincipalArray(PRUint32 count) { - nsVector * itsArray = new nsVector(); - itsArray->SetSize(count, 1); + itsArray = new nsVector(); + if(itsArray) + itsArray->SetSize(count, 1); } nsPrincipalArray::~nsPrincipalArray(void) {