Update clean.c

Protect against NULL in PruneSetion.
 A Null node happens when pruning unbalanced <![if ...]> <![endif]>.
This commit is contained in:
Eric 2019-12-17 15:25:58 -05:00
parent d1b906991a
commit 572538c6d7

View file

@ -1638,6 +1638,9 @@ static Node* PruneSection( TidyDocImpl* doc, Node *node )
for (;;)
{
if (node == NULL)
return NULL;
ctmbstr lexbuf = lexer->lexbuf + node->start;
if ( TY_(tmbstrncmp)(lexbuf, "if !supportEmptyParas", 21) == 0 )
{