summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--css/select.c3
-rw-r--r--render/html_forms.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/css/select.c b/css/select.c
index 59f2641cc..fa38b4ef8 100644
--- a/css/select.c
+++ b/css/select.c
@@ -1058,8 +1058,9 @@ css_error node_has_attribute_includes(void *pw, void *node,
const char *start;
const char *end;
+ *match = false;
+
if (vlen == 0) {
- *match = false;
return CSS_OK;
}
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) {