openbsd-ports/www/tidy/patches/patch-parser_c

27 lines
610 B
Plaintext
Raw Normal View History

2000-08-15 10:44:53 -04:00
$OpenBSD: patch-parser_c,v 1.3 2000/08/15 14:44:53 rohee Exp $
2000-05-19 20:31:53 -04:00
Was a core fixer in a previous version, should still be useful with
this one.
2000-08-15 10:44:53 -04:00
--- parser.c.orig Fri Aug 4 18:21:05 2000
+++ parser.c Tue Aug 15 16:26:34 2000
@@ -418,6 +418,9 @@
2000-08-15 10:44:53 -04:00
static void ParseTag(Lexer *lexer, Node *node, uint mode)
{
+ if (!node->tag)
+ return;
+
if (node->tag->model & CM_EMPTY)
{
lexer->waswhite = no;
2000-08-15 10:44:53 -04:00
@@ -1587,7 +1590,7 @@
continue;
}
- if (node->tag != tag_li)
+ if ((node->tag != tag_li) && node->tag)
{
UngetToken(lexer);