27 lines
603 B
Plaintext
27 lines
603 B
Plaintext
$OpenBSD: patch-parser_c,v 1.2 2000/05/20 00:31:53 rohee Exp $
|
|
|
|
Was a core fixer in a previous version, should still be useful with
|
|
this one.
|
|
|
|
--- parser.c.orig Sun Apr 30 11:23:55 2000
|
|
+++ parser.c Sat May 20 02:11:48 2000
|
|
@@ -415,6 +415,9 @@
|
|
|
|
void ParseTag(Lexer *lexer, Node *node, uint mode)
|
|
{
|
|
+ if (!node->tag)
|
|
+ return;
|
|
+
|
|
if (node->tag->model & CM_EMPTY)
|
|
{
|
|
lexer->waswhite = no;
|
|
@@ -1583,7 +1586,7 @@
|
|
continue;
|
|
}
|
|
|
|
- if (node->tag != tag_li)
|
|
+ if ((node->tag != tag_li) && node->tag)
|
|
{
|
|
UngetToken(lexer);
|
|
|