From: Vsevolod Stakhov Date: Thu, 21 May 2009 13:29:11 +0000 (+0400) Subject: * Fix issue with tag X-Git-Tag: 0.2.7~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=335b940b6a5b22e6ba123c313877ca85235e2678;p=thirdparty%2Frspamd.git * Fix issue with tag --- diff --git a/src/html.c b/src/html.c index eb2179369d..69f5e09c24 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);