From 335b940b6a5b22e6ba123c313877ca85235e2678 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 21 May 2009 17:29:11 +0400 Subject: [PATCH] * Fix issue with tag --- src/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html.c b/src/html.c index eb2179369..69f5e09c2 100644 --- a/src/html.c +++ b/src/html.c @@ -230,7 +230,7 @@ check_balance (GNode *node, GNode **cur_level) cur = node->parent; while (cur && cur->data) { tmp = cur->data; - if (tmp->tag->id == arg->tag->id && (tmp->flags & FL_CLOSED) == 0) { + if ((tmp->tag && arg->tag) && tmp->tag->id == arg->tag->id && (tmp->flags & FL_CLOSED) == 0) { tmp->flags |= FL_CLOSED; /* Destroy current node as we find corresponding parent node */ g_node_destroy (node); -- 2.39.5