summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_isolation.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-08-03 13:59:27 +0300
committerMax Romanov <max.romanov@nginx.com>2021-08-03 13:59:27 +0300
commitdb03dfad6745a7d87d784ac51ed2d52e1c50a557 (patch)
tree9ba539d5873f9f008e5a5c4ab9b013fd1ec44d5e /src/nxt_isolation.c
parentfa9fb29be221e0393562831a9e3bcba416652f60 (diff)
downloadunit-db03dfad6745a7d87d784ac51ed2d52e1c50a557.tar.gz
unit-db03dfad6745a7d87d784ac51ed2d52e1c50a557.tar.bz2
Fixed dead assignments.
Found by Clang Static Analyzer.
Diffstat (limited to 'src/nxt_isolation.c')
-rw-r--r--src/nxt_isolation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_isolation.c b/src/nxt_isolation.c
index cab0074b..e3cb1f22 100644
--- a/src/nxt_isolation.c
+++ b/src/nxt_isolation.c
@@ -126,10 +126,10 @@ nxt_isolation_main_prefork(nxt_task_t *task, nxt_process_t *process,
return ret;
}
- has_mnt = 0;
-
#if (NXT_HAVE_CLONE_NEWNS)
has_mnt = nxt_is_clone_flag_set(process->isolation.clone.flags, NEWNS);
+#else
+ has_mnt = 0;
#endif
if (process->user_cred->uid == 0 && !has_mnt) {