summaryrefslogtreecommitdiff
path: root/lib/vtls/nss.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2019-06-20 12:19:41 +0200
committerJay Satiro <raysatiro@yahoo.com>2019-07-06 23:37:51 -0400
commit67171025031184bb86703746422a88573d9ef3c1 (patch)
tree8972ac76224b9e8e069505f649398b934cc5929d /lib/vtls/nss.c
parent2028a1a977e91e5eae4852a778ab67bda3d3b9ad (diff)
downloadcurl-67171025031184bb86703746422a88573d9ef3c1.tar.gz
nss: don't set unused parameter
The value of the maxPTDs parameter to PR_Init() has since at least NSPR 2.1, which was released sometime in 1998, been marked ignored as is accordingly not used in the initialization code. Setting it to a value when calling PR_Init() is thus benign, but indicates an intent which may be misleading. Reset the value to zero to improve clarity. Closes https://github.com/curl/curl/pull/4054
Diffstat (limited to 'lib/vtls/nss.c')
-rw-r--r--lib/vtls/nss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c
index 7a5213b2b..5e0cd2414 100644
--- a/lib/vtls/nss.c
+++ b/lib/vtls/nss.c
@@ -1423,7 +1423,7 @@ static int Curl_nss_init(void)
{
/* curl_global_init() is not thread-safe so this test is ok */
if(nss_initlock == NULL) {
- PR_Init(PR_USER_THREAD, PR_PRIORITY_NORMAL, 256);
+ PR_Init(PR_USER_THREAD, PR_PRIORITY_NORMAL, 0);
nss_initlock = PR_NewLock();
nss_crllock = PR_NewLock();
nss_findslot_lock = PR_NewLock();