aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-03-16 19:13:42 -0400
committerJay Satiro <raysatiro@yahoo.com>2016-03-16 19:13:42 -0400
commit80015cdd52145bd95b98e0e456540c6da3120f98 (patch)
treed4cd9195c28a352c27943dcc16f422d44d5d0baf /lib/easy.c
parent0e18b8b1071d1101e41bd78d69db64d1514383fc (diff)
version: thread safety
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c
index fc7b40b27..0b6d93361 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -79,6 +79,8 @@
#include "curl_memory.h"
#include "memdebug.h"
+void curl_version_init();
+
/* win32_cleanup() is for win32 socket cleanup functionality, the opposite
of win32_init() */
static void win32_cleanup(void)
@@ -280,7 +282,9 @@ static CURLcode global_init(long flags, bool memoryfuncs)
if(flags & CURL_GLOBAL_ACK_EINTR)
Curl_ack_eintr = 1;
- init_flags = flags;
+ init_flags = flags;
+
+ curl_version_init();
return CURLE_OK;
}