summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-03-29 16:35:42 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-03-29 16:35:42 +0300
commit5177b085b13be78d216441d21480caf81eb968c2 (patch)
treeea3c80a789a295d072fd339d10b23515d6dea549 /src/nxt_conf.c
parent5a9c23e2b4ff39ee4c25f67ece56e3d441edfeed (diff)
downloadunit-5177b085b13be78d216441d21480caf81eb968c2.tar.gz
unit-5177b085b13be78d216441d21480caf81eb968c2.tar.bz2
nxt_lvlhsh_each() refactoring and nxt_lvlhsh_each_init().
Diffstat (limited to 'src/nxt_conf.c')
-rw-r--r--src/nxt_conf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nxt_conf.c b/src/nxt_conf.c
index 684135cf..6d5d3382 100644
--- a/src/nxt_conf.c
+++ b/src/nxt_conf.c
@@ -1262,8 +1262,7 @@ nxt_conf_json_parse_object(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start,
object->count = count;
member = object->members;
- nxt_memzero(&lhe, sizeof(nxt_lvlhsh_each_t));
- lhe.proto = &nxt_conf_object_hash_proto;
+ nxt_lvlhsh_each_init(&lhe, &nxt_conf_object_hash_proto);
for ( ;; ) {
element = nxt_lvlhsh_each(&hash, &lhe);