mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Replace ZEROPTR() with memset.
This commit is contained in:
@ -196,8 +196,8 @@ static void SocketGetAddresses (
|
||||
NetAddress * remoteAddr
|
||||
) {
|
||||
// NetAddress may be bigger than sockaddr_in so start by zeroing the whole thing
|
||||
ZEROPTR(localAddr);
|
||||
ZEROPTR(remoteAddr);
|
||||
memset(localAddr, 0, sizeof(*localAddr));
|
||||
memset(remoteAddr, 0, sizeof(*remoteAddr));
|
||||
|
||||
// don't have to enter critsect or validate socket before referencing it
|
||||
// because this routine is called before the user has a chance to close it
|
||||
|
Reference in New Issue
Block a user