summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-08-11 23:32:16 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-08-11 23:32:16 +0000
commitd1bfc81d22200034d4cd9acedd9a51ffbc959a91 (patch)
tree16c9c5e503bc850645e80270eb502d3871652f02
parent065533f90e7878c32d268f2c49d8c1f9f7e83b0f (diff)
downloadnetsurf-d1bfc81d22200034d4cd9acedd9a51ffbc959a91.tar.gz
netsurf-d1bfc81d22200034d4cd9acedd9a51ffbc959a91.tar.bz2
C89
svn path=/trunk/netsurf/; revision=5053
-rw-r--r--render/form.c3
-rw-r--r--render/html.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/render/form.c b/render/form.c
index 4ed0e4f88..e4fef24f7 100644
--- a/render/form.c
+++ b/render/form.c
@@ -343,12 +343,13 @@ bool form_successful_controls(struct form *form,
case GADGET_IMAGE: {
/* image */
+ const size_t len;
if (control != submit_button)
/* only the activated submit button
* is successful */
continue;
- const size_t len = strlen(control->name) + 3;
+ len = strlen(control->name) + 3;
/* x */
success_new = malloc(sizeof(*success_new));
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;