From 6b0a3aed22cfd26325d7a7438f10e0392cdde467 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 25 Sep 2017 18:04:11 +0300 Subject: Style fixes. --- src/nxt_main_process.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index 7f39cc1d..7de643ca 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -322,11 +322,12 @@ nxt_main_start_controller_process(nxt_task_t *task, nxt_runtime_t *rt) file.name = (nxt_file_name_t *) rt->conf; - if (nxt_file_open(task, &file, NXT_FILE_RDONLY, NXT_FILE_OPEN, 0) == NXT_OK) { + ret = nxt_file_open(task, &file, NXT_FILE_RDONLY, NXT_FILE_OPEN, 0); - if (nxt_fast_path(nxt_file_info(&file, &fi) == NXT_OK - && nxt_is_file(&fi))) - { + if (ret == NXT_OK) { + ret = nxt_file_info(&file, &fi); + + if (nxt_fast_path(ret == NXT_OK && nxt_is_file(&fi))) { conf.length = nxt_file_size(&fi); conf.start = nxt_malloc(conf.length); -- cgit