From: Dr. Stephen Henson Date: Wed, 26 Jul 2000 01:39:23 +0000 (+0000) Subject: Fix warnings. X-Git-Tag: OpenSSL-engine-0_9_6-beta1~17^2~11 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=033d001e907f4ca7f9a3876e6b1033dec6d7cb1b Fix warnings. In crypto/err/err.c need to initialise p to NULL in case thread_hash is NULL. Otherwise p will be uninitialized. --- 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