Skip to content
Permalink
Browse files

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 #4054
  • Loading branch information...
danielgustafsson authored and jay committed Jun 20, 2019
1 parent 2028a1a commit 67171025031184bb86703746422a88573d9ef3c1
Showing with 1 addition and 1 deletion.
  1. +1 −1 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();

0 comments on commit 6717102

Please sign in to comment.
You can’t perform that action at this time.