Revert "Proper struct initialization"

This reverts commit bc8dbfc9fd.
This commit is contained in:
thorkill 2015-06-30 18:09:07 +02:00
parent 84ede57e52
commit 4f82a6359f
12 changed files with 59 additions and 105 deletions

View file

@ -687,11 +687,7 @@ static bool add_listen_address(char *address, bool bindto) {
*address = 0;
}
struct addrinfo *ai, hint;
ai = NULL;
memset(&hint, 0x0, sizeof(struct addrinfo));
struct addrinfo *ai, hint = {0};
hint.ai_family = addressfamily;
hint.ai_socktype = SOCK_STREAM;
hint.ai_protocol = IPPROTO_TCP;