2000-08-15 10:44:53 -04:00
|
|
|
$OpenBSD: patch-parser_c,v 1.3 2000/08/15 14:44:53 rohee Exp $
|
2000-02-09 18:55:44 -05:00
|
|
|
|
2000-05-19 20:31:53 -04:00
|
|
|
Was a core fixer in a previous version, should still be useful with
|
2000-02-09 18:55:44 -05:00
|
|
|
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-02-09 18:55:44 -05:00
|
|
|
|
2000-08-15 10:44:53 -04:00
|
|
|
static void ParseTag(Lexer *lexer, Node *node, uint mode)
|
2000-02-09 18:55:44 -05:00
|
|
|
{
|
|
|
|
+ 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 @@
|
2000-02-09 18:55:44 -05:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (node->tag != tag_li)
|
|
|
|
+ if ((node->tag != tag_li) && node->tag)
|
|
|
|
{
|
|
|
|
UngetToken(lexer);
|
|
|
|
|