aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c
index 64ebe362e..2ac2fe323 100644
--- a/src/html.c
+++ b/src/html.c
@@ -864,7 +864,9 @@ add_html_node (struct worker_task *task, memory_pool_t * pool, struct mime_text_
*cur_level = new;
}
/* Skip some tags */
- if (data->tag->id == Tag_STYLE || data->tag->id == Tag_SCRIPT || data->tag->id == Tag_OBJECT) {
+ if (data->tag && (data->tag->id == Tag_STYLE ||
+ data->tag->id == Tag_SCRIPT ||
+ data->tag->id == Tag_OBJECT)) {
return FALSE;
}
}