mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:23:34 +03:00
version: make curl_version* thread-safe without using global context
Closes #5010
This commit is contained in:
parent
310dc709ff
commit
e364546fb3
6 changed files with 101 additions and 104 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue