summaryrefslogtreecommitdiffstats
path: root/crypto/err
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-07-26 01:39:23 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-07-26 01:39:23 +0000
commit033d001e907f4ca7f9a3876e6b1033dec6d7cb1b (patch)
tree67fc47953f1907100bf4b287bc54a0896651985b /crypto/err
parent284ef5f35710b9fbff82abc20cced66d2dcff7c1 (diff)
Fix warnings.
In crypto/err/err.c need to initialise p to NULL in case thread_hash is NULL. Otherwise p will be uninitialized.
Diffstat (limited to 'crypto/err')
-rw-r--r--crypto/err/err.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c
index 7ce9e8fb9a..f108bc0b81 100644
--- a/crypto/err/err.c
+++ b/crypto/err/err.c
@@ -644,7 +644,7 @@ static int pid_cmp(ERR_STATE *a, ERR_STATE *b)
void ERR_remove_state(unsigned long pid)
{
- ERR_STATE *p,tmp;
+ ERR_STATE *p = NULL,tmp;
if (thread_hash == NULL)
return;