diff --git a/lib/hostip.c b/lib/hostip.c index 48942d4bda..e547a8e450 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -201,7 +201,7 @@ void Curl_printable_address(const struct Curl_addrinfo *ai, char *buf, return address that we can jump back to from inside a signal handler. This is not thread-safe stuff. */ static sigjmp_buf curl_jmpenv; -static curl_simple_lock curl_jmpenv_lock; +static curl_simple_lock curl_jmpenv_lock = CURL_SIMPLE_LOCK_INIT; #endif #ifdef USE_IPV6