diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2020-01-02 08:21:23 -0700 |
---|---|---|
committer | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2020-01-02 08:21:23 -0700 |
commit | 928e09386492448833db556ddaa308120502d633 (patch) | |
tree | 465789b0883cb31af1a52b17e26fb1282367ae8a | |
parent | 765d3c0cd105306d8e3b4fc1d1f481fffd3115f2 (diff) | |
download | nss-hg-NSS_3_49_BETA1.tar.gz |
Bug 1606025 - Remove -Wmaybe-uninitialized warning in sslsnce.c r=jcjNSS_3_49_BETA1
(Amended by jcj to also set privKeyCopy to NULL)
-rw-r--r-- | lib/ssl/sslsnce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/sslsnce.c b/lib/ssl/sslsnce.c index 36c82117e..4be422b21 100644 --- a/lib/ssl/sslsnce.c +++ b/lib/ssl/sslsnce.c @@ -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); |