summaryrefslogtreecommitdiffstats
path: root/crypto
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
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')
-rw-r--r--crypto/err/err.c2
-rw-r--r--crypto/rand/rand.h2
2 files changed, 2 insertions, 2 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;
diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h
index 3ea37729f7..971880edaa 100644
--- a/crypto/rand/rand.h
+++ b/crypto/rand/rand.h
@@ -91,7 +91,7 @@ const char *RAND_file_name(char *file,int num);
int RAND_status(void);
int RAND_egd(const char *path);
int RAND_egd_bytes(const char *path,int bytes);
-void ERR_load_RAND_strings(void);
+void ERR_load_RAND_strings(void);
int RAND_poll(void);
#ifdef __cplusplus