1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

html_form(): prevent useless second test by using else if instead of if.

This commit is contained in:
Laurent MONIN 2005-12-04 12:21:43 +01:00 committed by Laurent MONIN
parent 37b1fcadea
commit d1f8b8061c

View File

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