summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2005-05-15 17:37:00 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2005-05-15 17:37:00 +0000
commit4a80b3cccf5f1de25b843c7e2ada7dfb08034728 (patch)
treeea6c53e0b45c6181b16b0307a7143ce0bddc2b46
parentcfa4abed971120dbf1e09dc99cda060ca261d37c (diff)
downloadnetsurf-4a80b3cccf5f1de25b843c7e2ada7dfb08034728.tar.gz
netsurf-4a80b3cccf5f1de25b843c7e2ada7dfb08034728.tar.bz2
[project @ 2005-05-15 17:37:00 by jmb]
Fix read from NULL pointer svn path=/import/netsurf/; revision=1723
-rw-r--r--render/html.c2
1 files changed, 1 insertions, 1 deletions
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"));
}