From 3719e750688fe968d50e78c42d70eda0b146a5a6 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Thu, 8 Dec 2005 16:26:37 +0100 Subject: [PATCH] Reduce code redundancy. --- src/document/html/parser/forms.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/document/html/parser/forms.c b/src/document/html/parser/forms.c index e18f16b0..8468a922 100644 --- a/src/document/html/parser/forms.c +++ b/src/document/html/parser/forms.c @@ -412,10 +412,9 @@ abort: } if (!strlcasecmp(name, namelen, "OPTION", 6)) { - if (closing_tag) { - add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi); - goto see; - } else { + add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi); + + if (!closing_tag) { unsigned char *value, *label; add_select_item(&lnk_menu, &lbl, &orig_lbl, values, order, nnmi); @@ -438,8 +437,9 @@ abort: init_string(&orig_lbl); nnmi = !!label; } - goto see; } + + goto see; } if (!strlcasecmp(name, namelen, "OPTGROUP", 8)) {