Assign pointers values of NULL rather than 0 in soreceive().
This commit is contained in:
parent
62e0e10696
commit
2c40b499bc
@ -864,9 +864,9 @@ soreceive(so, psa, uio, mp0, controlp, flagsp)
|
||||
|
||||
mp = mp0;
|
||||
if (psa != NULL)
|
||||
*psa = 0;
|
||||
*psa = NULL;
|
||||
if (controlp != NULL)
|
||||
*controlp = 0;
|
||||
*controlp = NULL;
|
||||
if (flagsp != NULL)
|
||||
flags = *flagsp &~ MSG_EOR;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user