From 1f36e4837259ecb83f91568ff809ca02142d0e62 Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sun, 15 Jul 2012 01:02:33 +0100 Subject: Squash warnings --- render/html.c | 3 ++- render/html_forms.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/render/html.c b/render/html.c index 8c11f35b9..80e467c58 100644 --- a/render/html.c +++ b/render/html.c @@ -2050,7 +2050,8 @@ static bool html_convert(struct content *c) } /* Retrieve forms from parser */ - htmlc->forms = html_forms_get_forms(htmlc->encoding, htmlc->document); + htmlc->forms = html_forms_get_forms(htmlc->encoding, + (dom_html_document *) htmlc->document); for (f = htmlc->forms; f != NULL; f = f->prev) { char *action; url_func_result res; diff --git a/render/html_forms.c b/render/html_forms.c index 626fe4c0e..c8b3c7fe6 100644 --- a/render/html_forms.c +++ b/render/html_forms.c @@ -258,7 +258,7 @@ out: static struct form_control * parse_input_element(struct form *forms, dom_html_input_element *input) { - struct form_control *control; + struct form_control *control = NULL; dom_html_form_element *form = NULL; dom_string *ds_type = NULL; dom_string *ds_name = NULL; -- cgit v1.2.3