fixed a NULL node bug in debug build

This commit is contained in:
Srikanth Anantharam 2015-09-13 10:32:05 +05:30
parent 22998e81e8
commit 9a0af48a4e

View file

@ -133,7 +133,7 @@ static void Show_Node( TidyDocImpl* doc, const char *msg, Node *node )
SPRTF("> %s\n", lex ? "lexer" : "stream");
} else {
SPRTF("Returning %s node %p <%s>... %s\n", msg, node,
node->element ? node->element : "blank",
node ? node->element ? node->element : "blank" : "NULL",
lex ? "lexer" : "stream");
}
}