From 4a80b3cccf5f1de25b843c7e2ada7dfb08034728 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 15 May 2005 17:37:00 +0000 Subject: [project @ 2005-05-15 17:37:00 by jmb] Fix read from NULL pointer svn path=/import/netsurf/; revision=1723 --- render/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render/html.c') diff --git a/render/html.c b/render/html.c index 39d4541fe..583faf138 100644 --- a/render/html.c +++ b/render/html.c @@ -290,7 +290,7 @@ bool html_convert(struct content *c, int width, int height) head != 0 && head->type != XML_ELEMENT_NODE; head = head->next) ; - if (strcmp((const char *) head->name, "head") != 0) { + if (head && strcmp((const char *) head->name, "head") != 0) { head = 0; LOG(("head element not found")); } -- cgit v1.2.3