Fix warnings.

In crypto/err/err.c need to initialise p to
NULL in case thread_hash is NULL. Otherwise
p will be uninitialized.
This commit is contained in:
Dr. Stephen Henson 2000-07-26 01:39:23 +00:00
parent 284ef5f357
commit 033d001e90
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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