mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-18 21:40:17 -04:00
fix win32 build
MSVC is stuck in '89, must declare all variables first.
This commit is contained in:
@@ -96,8 +96,9 @@ void cli_logg_unsetup(void)
|
||||
|
||||
static inline void *cli_getctx(void)
|
||||
{
|
||||
cli_ctx *ctx;
|
||||
pthread_once(&cli_ctx_tls_key_once, cli_ctx_tls_key_alloc);
|
||||
cli_ctx *ctx = pthread_getspecific(cli_ctx_tls_key);
|
||||
ctx = pthread_getspecific(cli_ctx_tls_key);
|
||||
return ctx ? ctx->cb_ctx : NULL;
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user