From 50ffe0f2cdccf848dd41016cd95b16058fd032f2 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Fri, 25 Nov 2005 09:32:43 +0100 Subject: [PATCH] html_select(): fix compilation bug to recent patch. --- src/document/html/parser/forms.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/document/html/parser/forms.c b/src/document/html/parser/forms.c index 8f08869d..956b7105 100644 --- a/src/document/html/parser/forms.c +++ b/src/document/html/parser/forms.c @@ -303,12 +303,14 @@ void html_select(struct html_context *html_context, unsigned char *a, unsigned char *html, unsigned char *eof, unsigned char **end) { + unsigned char *al; + if (!do_html_select(a, html, eof, end, html_context)) return; - unsigned char *al = get_attr_val(a, "name", html_context->options); - + al = get_attr_val(a, "name", html_context->options); if (!al) return; + html_focusable(html_context, a); html_top.type = ELEMENT_DONT_KILL; mem_free_set(&format.select, al);