Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1606025 - Remove -Wmaybe-uninitialized warning in sslsnce.c r=jcj
(Amended by jcj to also set privKeyCopy to NULL)

--HG--
extra : amend_source : 260662724fc9786c34b0b4550e77750744e02627
  • Loading branch information
giuliobenetti committed Jan 2, 2020
1 parent e4d2e93 commit 0504c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ssl/sslsnce.c
Expand Up @@ -1779,8 +1779,8 @@ ssl_GetSelfEncryptKeyPair(SECKEYPublicKey **pubKey,
return SECFailure;
}

SECKEYPublicKey *pubKeyCopy;
SECKEYPrivateKey *privKeyCopy;
SECKEYPublicKey *pubKeyCopy = NULL;
SECKEYPrivateKey *privKeyCopy = NULL;
PRBool noKey = PR_FALSE;

PR_RWLock_Rlock(ssl_self_encrypt_key_pair.lock);
Expand Down

0 comments on commit 0504c39

Please sign in to comment.