From f7195e7016202a50eb8779154e95cdd1bbc58b0f Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Fri, 2 Feb 2018 14:08:18 +0300 Subject: Fixed typo in assertion statement introduced in 4979fe09d9cd. Found by Coverity (CID 260375). --- src/nxt_main_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit