From f3d30a54d46277f8358cff5b07473822961bdf58 Mon Sep 17 00:00:00 2001 From: "harishd%netscape.com" Date: Tue, 9 Jul 2002 21:32:56 +0000 Subject: [PATCH] ** DEBUG ONLY ** Initialize local variables ( were causing problems running parser regression tests ) git-svn-id: svn://10.0.0.236/trunk@124884 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/nsLoggingSink.cpp | 5 +++-- mozilla/parser/htmlparser/src/nsLoggingSink.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mozilla/htmlparser/src/nsLoggingSink.cpp b/mozilla/htmlparser/src/nsLoggingSink.cpp index 874d7d0b2fd..1475b19f205 100644 --- a/mozilla/htmlparser/src/nsLoggingSink.cpp +++ b/mozilla/htmlparser/src/nsLoggingSink.cpp @@ -77,6 +77,7 @@ nsLoggingSink::nsLoggingSink() { mOutput = 0; mLevel=-1; mSink=0; + mParser=0; } nsLoggingSink::~nsLoggingSink() { @@ -340,7 +341,7 @@ nsLoggingSink::AddComment(const nsIParserNode& aNode){ NS_IMETHODIMP nsLoggingSink::SetTitle(const nsString& aValue) { - char* tmp; + char* tmp = nsnull; GetNewCString(aValue, &tmp); WriteTabs(mOutput,++mLevel); if(tmp) { @@ -625,7 +626,7 @@ nsLoggingSink::WriteAttributes(const nsIParserNode& aNode) { PRInt32 lineNo = 0; dtd->CollectSkippedContent(aNode.GetNodeType(), theString, lineNo); - char* content; + char* content = nsnull; GetNewCString(theString, &content); if(content) { PR_fprintf(mOutput, " CollectSkippedContent(aNode.GetNodeType(), theString, lineNo); - char* content; + char* content = nsnull; GetNewCString(theString, &content); if(content) { PR_fprintf(mOutput, "