diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2005-05-15 17:37:00 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2005-05-15 17:37:00 +0000 |
commit | 4a80b3cccf5f1de25b843c7e2ada7dfb08034728 (patch) | |
tree | ea6c53e0b45c6181b16b0307a7143ce0bddc2b46 | |
parent | cfa4abed971120dbf1e09dc99cda060ca261d37c (diff) | |
download | netsurf-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.c | 2 |
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")); } |