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
@ -644,7 +644,7 @@ static int pid_cmp(ERR_STATE *a, ERR_STATE *b)
|
|||||||
|
|
||||||
void ERR_remove_state(unsigned long pid)
|
void ERR_remove_state(unsigned long pid)
|
||||||
{
|
{
|
||||||
ERR_STATE *p,tmp;
|
ERR_STATE *p = NULL,tmp;
|
||||||
|
|
||||||
if (thread_hash == NULL)
|
if (thread_hash == NULL)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user