mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
html_form(): prevent useless second test by using else if instead of if.
This commit is contained in:
parent
37b1fcadea
commit
d1f8b8061c
@ -62,7 +62,7 @@ html_form(struct html_context *html_context, unsigned char *a,
|
|||||||
if (enctype) {
|
if (enctype) {
|
||||||
if (!strcasecmp(enctype, "multipart/form-data"))
|
if (!strcasecmp(enctype, "multipart/form-data"))
|
||||||
form->method = FORM_METHOD_POST_MP;
|
form->method = FORM_METHOD_POST_MP;
|
||||||
if (!strcasecmp(enctype, "text/plain"))
|
else if (!strcasecmp(enctype, "text/plain"))
|
||||||
form->method = FORM_METHOD_POST_TEXT_PLAIN;
|
form->method = FORM_METHOD_POST_TEXT_PLAIN;
|
||||||
mem_free(enctype);
|
mem_free(enctype);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user