** 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
This commit is contained in:
@@ -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, " <content value=\"");
|
||||
|
||||
Reference in New Issue
Block a user