mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
use ZERO_STRUCT
This commit is contained in:
parent
95ca53f3e0
commit
e371317686
@ -49,7 +49,8 @@ bool interpret_string_addr_internal(struct addrinfo **ppres,
|
||||
int ret;
|
||||
struct addrinfo hints;
|
||||
|
||||
memset(&hints, '\0', sizeof(hints));
|
||||
ZERO_STRUCT(hints);
|
||||
|
||||
/* By default make sure it supports TCP. */
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
hints.ai_flags = flags;
|
||||
|
Loading…
x
Reference in New Issue
Block a user