Merge pull request #360 from sria91/master

fixed a NULL node bug in debug build
This commit is contained in:
Geoff McLane 2016-01-30 20:31:32 +01:00
commit 328308cbb5

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");
}
}