From 033d001e907f4ca7f9a3876e6b1033dec6d7cb1b Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 26 Jul 2000 01:39:23 +0000 Subject: [PATCH] Fix warnings. In crypto/err/err.c need to initialise p to NULL in case thread_hash is NULL. Otherwise p will be uninitialized. --- crypto/err/err.c | 2 +- crypto/rand/rand.h | 2 +- 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 -- 2.25.1