summaryrefslogtreecommitdiffhomepage
path: root/test/test_node_es_modules.py
diff options
context:
space:
mode:
authorAndrew Clayton <andrew@digital-domain.net>2022-06-11 01:55:12 +0100
committerAndrew Clayton <andrew@digital-domain.net>2022-06-15 21:16:19 +0100
commit0a9ef7d023b96c6a0aad370be93d7f7d7009ed83 (patch)
tree91d6187463b7a0dcc4b734fab42d126b17cc4db0 /test/test_node_es_modules.py
parent6a8081d71e805b12d0f7fd32ce72d60babadfc85 (diff)
downloadunit-archive/unreadVariable.tar.gz
unit-archive/unreadVariable.tar.bz2
Unit: Don't needlessly set lib in nxt_unit_shm_open().archive/unreadVariable
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 'test/test_node_es_modules.py')
0 files changed, 0 insertions, 0 deletions