version: make curl_version* thread-safe without using global context

Closes #5010
This commit is contained in:
Daniel Stenberg 2020-03-01 16:16:19 +01:00
parent 310dc709ff
commit e364546fb3
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 101 additions and 104 deletions

View file

@ -333,7 +333,7 @@ static const struct Curl_handler Curl_handler_http2_ssl = {
int Curl_http2_ver(char *p, size_t len)
{
nghttp2_info *h2 = nghttp2_version(0);
return msnprintf(p, len, " nghttp2/%s", h2->version_str);
return msnprintf(p, len, "nghttp2/%s", h2->version_str);
}
/*