diff options
author | Andrew Clayton <andrew@digital-domain.net> | 2022-06-16 02:00:58 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-06-22 00:30:44 +0200 |
commit | 39819143ea891b752e5f1f6c6101d0861fb18850 (patch) | |
tree | f4f8b4331dce6507f512cdcc62497dbaea315827 /test/test_static_chroot.py | |
parent | 7a286ec0797df4530eeee6f463ae00b86463084b (diff) | |
download | unit-39819143ea891b752e5f1f6c6101d0861fb18850.tar.gz unit-39819143ea891b752e5f1f6c6101d0861fb18850.tar.bz2 |
Unit: avoided needlessly setting lib in nxt_unit_shm_open().
As was pointed out by the cppcheck[0] static code analysis utility, lib
was being set in nxt_unit_shm_open() regardless of platform when in fact
it's only used when (NXT_HAVE_MEMFD_CREATE || NXT_HAVE_SHM_OPEN).
Move the variable declaration & definition to be within the
#if (NXT_HAVE_MEMFD_CREATE || NXT_HAVE_SHM_OPEN)
block.
[0]: https://cppcheck.sourceforge.io/
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions