]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: curl_version_info is not thread-safe before libcurl initialization
authorPatrick Monnerat <patrick@monnerat.net>
Sun, 25 Sep 2022 15:30:23 +0000 (17:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 Nov 2022 08:19:06 +0000 (09:19 +0100)
Closes #9583

docs/libcurl/curl_version_info.3
docs/libcurl/libcurl-thread.3

index 362261992cb43ae301ea8b8d727a34555d78a8fc..a6c28a7d3c2c0163085d786150697436c067d857 100644 (file)
@@ -46,6 +46,10 @@ Applications should use this information to judge if things are possible to do
 or not, instead of using compile-time checks, as dynamic/DLL libraries can be
 changed independent of applications.
 
+This function can alter the returned static data as long as
+\fIcurl_global_init\fP has not been called. It is therefore not thread-safe
+before libcurl initialization occurs.
+
 The curl_version_info_data struct looks like this
 
 .nf
index 1aebbb3e8e8ceafcfaafd90b35a3d1867093c710..32562c780f327c633a86bcb9bb83e5c2665f9f90 100644 (file)
@@ -111,3 +111,5 @@ replacements, must be thread safe. You can use \fIcurl_global_init_mem(3)\fP
 to set your own replacement memory functions.
 .IP "Non-safe functions"
 \fICURLOPT_DNS_USE_GLOBAL_CACHE(3)\fP is not thread-safe.
+
+\fIcurl_version_info(3)\fP is not thread-safe before libcurl initialization.