1
0
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:
Volker Lendecke 2010-02-07 17:57:56 +01:00
parent 95ca53f3e0
commit e371317686

View File

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