summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAxel Duch <axel.duch@nginx.com>2020-07-24 17:10:26 +0100
committerAxel Duch <axel.duch@nginx.com>2020-07-24 17:10:26 +0100
commit29cf3cc6c100af9eff79ff96e51e859a34fa159e (patch)
tree0d1f45a3b307720e30505f6dae8a01ca5314636e
parent85a1e083af931e3179595bcf9d6ea32810813752 (diff)
downloadunit-29cf3cc6c100af9eff79ff96e51e859a34fa159e.tar.gz
unit-29cf3cc6c100af9eff79ff96e51e859a34fa159e.tar.bz2
Configuration: removing redundant check.
Thanks to 洪志道 (Hong Zhi Dao).
-rw-r--r--src/nxt_conf_validation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_conf_validation.c b/src/nxt_conf_validation.c
index f34712bd..cdbcf858 100644
--- a/src/nxt_conf_validation.c
+++ b/src/nxt_conf_validation.c
@@ -861,7 +861,7 @@ nxt_conf_vldt_type(nxt_conf_validation_t *vldt, nxt_str_t *name,
{
u_char *p;
nxt_str_t expected;
- nxt_bool_t serial;
+ nxt_bool_t comma;
nxt_uint_t value_type, n, t;
u_char buf[nxt_length(NXT_CONF_VLDT_ANY_TYPE_STR)];
@@ -889,7 +889,7 @@ nxt_conf_vldt_type(nxt_conf_validation_t *vldt, nxt_str_t *name,
p = nxt_cpymem(p, "either ", 7);
}
- serial = (n > 2);
+ comma = (n > 2);
for ( ;; ) {
t = __builtin_ffs(type) - 1;
@@ -902,7 +902,7 @@ nxt_conf_vldt_type(nxt_conf_validation_t *vldt, nxt_str_t *name,
break;
}
- if (n > 1 || serial) {
+ if (comma) {
*p++ = ',';
}