summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.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_runtime.c
parent5a9c23e2b4ff39ee4c25f67ece56e3d441edfeed (diff)
downloadunit-5177b085b13be78d216441d21480caf81eb968c2.tar.gz
unit-5177b085b13be78d216441d21480caf81eb968c2.tar.bz2
nxt_lvlhsh_each() refactoring and nxt_lvlhsh_each_init().
Diffstat (limited to '')
-rw-r--r--src/nxt_runtime.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c
index a72bf945..e48f8b58 100644
--- a/src/nxt_runtime.c
+++ b/src/nxt_runtime.c
@@ -1834,9 +1834,7 @@ nxt_process_use(nxt_task_t *task, nxt_process_t *process, int i)
nxt_process_t *
nxt_runtime_process_first(nxt_runtime_t *rt, nxt_lvlhsh_each_t *lhe)
{
- nxt_memzero(lhe, sizeof(nxt_lvlhsh_each_t));
-
- lhe->proto = &lvlhsh_processes_proto;
+ nxt_lvlhsh_each_init(lhe, &lvlhsh_processes_proto);
return nxt_runtime_process_next(rt, lhe);
}