1
0
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:
Darryl Pogue
2012-01-20 23:42:39 -08:00
committed by Adam Johnson
parent 3c5ed83020
commit 30430d3024
10 changed files with 12 additions and 14 deletions

View File

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