diff options
Diffstat (limited to 'render/form.c')
-rw-r--r-- | render/form.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/form.c b/render/form.c index c542efd3e..0641379b7 100644 --- a/render/form.c +++ b/render/form.c @@ -135,7 +135,7 @@ struct form_successful_control *form_successful_controls(struct form *form, continue; /* file */ - if (control->type == GADGET_FILE) { + if (control->type == GADGET_FILE && control->value) { success_new = xcalloc(1, sizeof(*success_new)); success_new->file = true; success_new->name = xstrdup(control->name); |