From 67171025031184bb86703746422a88573d9ef3c1 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Thu, 20 Jun 2019 12:19:41 +0200 Subject: 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 --- lib/vtls/nss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3