summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html.c')
-rw-r--r--render/html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/html.c b/render/html.c
index 814eb3864..7df0816e6 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1008,9 +1008,10 @@ bool html_head(struct content *c, xmlNode *head)
if (!c->title && strcmp((const char *) node->name,
"title") == 0) {
xmlChar *title = xmlNodeGetContent(node);
+ char *title2;
if (!title)
return false;
- char *title2 = squash_whitespace((const char *) title);
+ title2 = squash_whitespace((const char *) title);
xmlFree(title);
if (!title2)
return false;