summaryrefslogtreecommitdiff
path: root/render/form.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/form.c')
-rw-r--r--render/form.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/render/form.c b/render/form.c
index bfd9664c3..b52e5add5 100644
--- a/render/form.c
+++ b/render/form.c
@@ -159,11 +159,16 @@ 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;
+ goto no_memory;
+ }
}
break;