[project @ 2004-10-09 19:14:26 by jmb]

Work around issue with selected radio buttons/checkboxes having no current value

svn path=/import/netsurf/; revision=1308
This commit is contained in:
John Mark Bell 2004-10-09 19:14:26 +00:00
parent 0685aeaa3f
commit bd17f8b9d1

View File

@ -159,12 +159,17 @@ bool form_successful_controls(struct form *form,
continue;
value = strdup(control->value);
if (!value) {
LOG(("failed to duplicate value"
"'%s' for control %s",
/* no current value -> use "" */
value = strdup("");
if (!value) {
LOG(("failed to duplicate"
"value '%s' for"
"control %s",
control->value,
control->name));
goto no_memory;
}
}
break;
case GADGET_SELECT: