mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:53:32 +03:00
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
This commit is contained in:
parent
2028a1a977
commit
6717102503
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue