From 6d585308f8ae421261bcb41b12bb872f5949abc7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 7 Aug 2012 10:53:40 +0100 Subject: Fix handling of form elements without a
. --- render/html_forms.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'render/html_forms.c') diff --git a/render/html_forms.c b/render/html_forms.c index 9ae8138d6..fc2bcaf8a 100644 --- a/render/html_forms.c +++ b/render/html_forms.c @@ -468,9 +468,6 @@ struct form_control *html_forms_get_control_for_node(struct form *forms, dom_nod dom_exception err; dom_string *ds_name = NULL; - if (forms == NULL) - return NULL; - /* Step one, see if we already have a control */ for (f = forms; f != NULL; f = f->prev) { for (ctl = f->controls; ctl != NULL; ctl = ctl->next) { -- cgit v1.2.3