From 8da6079f6f777e509c84f552b6a31f02698599b0 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Mon, 3 May 2004 22:05:40 +0000 Subject: [project @ 2004-05-03 22:05:40 by bursa] Implement dragging files into . svn path=/import/netsurf/; revision=821 --- render/form.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render/form.c') 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); -- cgit v1.2.3