From d522746c01fc7629d19851a45651ca1bb29ec3a5 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 19 Feb 2019 16:44:32 +0100 Subject: [PATCH] windows: fix sc_log_stream_lock handling --- src/util-debug.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/util-debug.c b/src/util-debug.c index 40c9fc0a0f..e4f303711a 100644 --- a/src/util-debug.c +++ b/src/util-debug.c @@ -78,7 +78,7 @@ SCEnumCharMap sc_log_op_iface_map[ ] = { /** * \brief Used for synchronous output on WIN32 */ -static SCMutex sc_log_stream_lock = NULL; +static SCMutex sc_log_stream_lock; #endif /* OS_WIN32 */ /** @@ -1486,10 +1486,7 @@ void SCLogDeInitLogModule(void) SCLogReleaseFGFilters(); #if defined (OS_WIN32) - if (sc_log_stream_lock != NULL) { - SCMutexDestroy(&sc_log_stream_lock); - sc_log_stream_lock = NULL; - } + SCMutexDestroy(&sc_log_stream_lock); #endif /* OS_WIN32 */ return;