summaryrefslogtreecommitdiff
path: root/render/form.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-05-03 22:05:40 +0000
committerJames Bursa <james@netsurf-browser.org>2004-05-03 22:05:40 +0000
commit8da6079f6f777e509c84f552b6a31f02698599b0 (patch)
tree728d29ae023e6402502ab7cec2bbc2209995d78a /render/form.c
parent24c57d3215f7e906ee312f19c6b1a870e984e765 (diff)
downloadnetsurf-8da6079f6f777e509c84f552b6a31f02698599b0.tar.gz
netsurf-8da6079f6f777e509c84f552b6a31f02698599b0.tar.bz2
[project @ 2004-05-03 22:05:40 by bursa]
Implement dragging files into <input type="file" ...>. svn path=/import/netsurf/; revision=821
Diffstat (limited to 'render/form.c')
-rw-r--r--render/form.c2
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);