Fixed dead assignments.

Found by Clang Static Analyzer.
This commit is contained in:
Max Romanov
2021-08-03 13:59:27 +03:00
parent fa9fb29be2
commit db03dfad67
6 changed files with 3 additions and 10 deletions

View File

@@ -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) {