summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-02-02 14:08:18 +0300
committerMax Romanov <max.romanov@nginx.com>2018-02-02 14:08:18 +0300
commitf7195e7016202a50eb8779154e95cdd1bbc58b0f (patch)
tree3c0c98c0e1c4ac186bb767bc7c040e35ec980646 /src/nxt_main_process.c
parent960962ddce87f6b401523b4426e8b5c61544ec7b (diff)
downloadunit-f7195e7016202a50eb8779154e95cdd1bbc58b0f.tar.gz
unit-f7195e7016202a50eb8779154e95cdd1bbc58b0f.tar.bz2
Fixed typo in assertion statement introduced in 4979fe09d9cd.
Found by Coverity (CID 260375).
Diffstat (limited to 'src/nxt_main_process.c')
-rw-r--r--src/nxt_main_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index d5978d7e..17a28faa 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -256,7 +256,7 @@ nxt_port_main_start_worker_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
idx = nxt_app_parse_type(app_conf.type.start, app_conf.type.length);
- nxt_assert(ret != NXT_APP_UNKNOWN);
+ nxt_assert(idx != NXT_APP_UNKNOWN);
ret = nxt_conf_map_object(mp, conf, nxt_common_members[idx].map,
nxt_common_members[idx].size, &app_conf);