Update clean.c
Protect against NULL in PruneSetion. A Null node happens when pruning unbalanced <![if ...]> <![endif]>.
This commit is contained in:
parent
d1b906991a
commit
572538c6d7
|
@ -1638,6 +1638,9 @@ static Node* PruneSection( TidyDocImpl* doc, Node *node )
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
if (node == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
ctmbstr lexbuf = lexer->lexbuf + node->start;
|
ctmbstr lexbuf = lexer->lexbuf + node->start;
|
||||||
if ( TY_(tmbstrncmp)(lexbuf, "if !supportEmptyParas", 21) == 0 )
|
if ( TY_(tmbstrncmp)(lexbuf, "if !supportEmptyParas", 21) == 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue