mirror of
https://github.com/mirror/wget.git
synced 2025-01-23 18:50:11 +08:00
[svn] Use the xzero shorthand for memset(..., 0, ...).
This commit is contained in:
parent
334a0cf9c9
commit
4b57f166ae
@ -490,7 +490,7 @@ ftp_pasv (int csock, ip_address *addr, int *port)
|
||||
assert (addr != NULL);
|
||||
assert (port != NULL);
|
||||
|
||||
memset (addr, 0, sizeof (ip_address));
|
||||
xzero (*addr);
|
||||
|
||||
/* Form the request. */
|
||||
request = ftp_request ("PASV", NULL);
|
||||
@ -558,7 +558,7 @@ ftp_lpsv (int csock, ip_address *addr, int *port)
|
||||
assert (addr != NULL);
|
||||
assert (port != NULL);
|
||||
|
||||
memset (addr, 0, sizeof (ip_address));
|
||||
xzero (*addr);
|
||||
|
||||
/* Form the request. */
|
||||
request = ftp_request ("LPSV", NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user