1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

html_select(): fix compilation bug to recent patch.

This commit is contained in:
Laurent MONIN 2005-11-25 09:32:43 +01:00 committed by Laurent MONIN
parent 9062c83b51
commit 50ffe0f2cd

View File

@ -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);