mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Add missing initialisations
configuring with --enable-mutex-atomics flagged these incorrectly initialised variables on systems where pthread_mutex_init doesn't just zero out the structure.
This commit is contained in:
@@ -114,9 +114,11 @@
|
||||
#endif /* ifndef NS_CLIENT_DROPPORT */
|
||||
|
||||
#if defined(_WIN32) && !defined(_WIN64)
|
||||
LIBNS_EXTERNAL_DATA atomic_uint_fast32_t ns_client_requests;
|
||||
LIBNS_EXTERNAL_DATA atomic_uint_fast32_t ns_client_requests =
|
||||
ATOMIC_VAR_INIT(0);
|
||||
#else /* if defined(_WIN32) && !defined(_WIN64) */
|
||||
LIBNS_EXTERNAL_DATA atomic_uint_fast64_t ns_client_requests;
|
||||
LIBNS_EXTERNAL_DATA atomic_uint_fast64_t ns_client_requests =
|
||||
ATOMIC_VAR_INIT(0);
|
||||
#endif /* if defined(_WIN32) && !defined(_WIN64) */
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user