svn path=/trunk/netsurf/; revision=5053
This commit is contained in:
François Revel 2008-08-11 23:32:16 +00:00
parent 065533f90e
commit d1bfc81d22
2 changed files with 4 additions and 2 deletions

View File

@ -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));

View File

@ -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;