From 9eed219c78128a0cb0939000abd10f5cd730e52f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 25 Jan 2011 21:47:12 +0300 Subject: [PATCH] Fix error with tags like --- src/html.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } } -- 2.39.5