From 718018ef17c01dcd76fc4159f20c678316492155 Mon Sep 17 00:00:00 2001 From: "beng%bengoodger.com" Date: Mon, 28 Nov 2005 23:15:17 +0000 Subject: [PATCH] 315940 fix a crash in nsNavHistoryResultNode::GetParent by initializing mParent to nsnull in ctor, along with a few other vars that are unusued. r=brettw --- browser/components/places/src/nsNavHistoryResult.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/components/places/src/nsNavHistoryResult.cpp b/browser/components/places/src/nsNavHistoryResult.cpp index 1b511952311..941d1a8e354 100755 --- a/browser/components/places/src/nsNavHistoryResult.cpp +++ b/browser/components/places/src/nsNavHistoryResult.cpp @@ -85,7 +85,8 @@ inline PRInt32 CompareIntegers(PRUint32 a, PRUint32 b) NS_IMPL_ISUPPORTS2(nsNavHistoryResultNode, nsNavHistoryResultNode, nsINavHistoryResultNode) -nsNavHistoryResultNode::nsNavHistoryResultNode() : mID(0), mExpanded(PR_FALSE) +nsNavHistoryResultNode::nsNavHistoryResultNode() : mID(0), mExpanded(PR_FALSE), + mParent(nsnull), mAccessCount(0), mTime(0) { }