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:
parent
284ef5f357
commit
033d001e90
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue