diff options
-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")); } |