mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
html_input(): minor code reordering.
This commit is contained in:
parent
a57c193ad9
commit
b863b65fbc
@ -214,7 +214,6 @@ html_input(struct html_context *html_context, unsigned char *a,
|
||||
mem_free(al);
|
||||
}
|
||||
|
||||
fc->name = get_attr_val(a, "name", html_context->options);
|
||||
if (fc->type != FC_FILE)
|
||||
fc->default_value = get_attr_val(a, "value",
|
||||
html_context->options);
|
||||
@ -231,6 +230,8 @@ html_input(struct html_context *html_context, unsigned char *a,
|
||||
if (!fc->default_value)
|
||||
fc->default_value = stracpy("");
|
||||
|
||||
fc->name = get_attr_val(a, "name", html_context->options);
|
||||
|
||||
fc->size = get_num(a, "size", html_context->options);
|
||||
if (fc->size == -1)
|
||||
fc->size = html_context->options->default_form_input_size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user