summaryrefslogtreecommitdiffstats
path: root/src/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c2
1 files changed, 1 insertions, 1 deletions
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);