diff options
author | Max Kellermann <max@musicpd.org> | 2019-07-09 18:13:23 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-07-29 11:32:06 +0200 |
commit | a784c8b1ae86059ebfedb635e4c907cd54ed2d3e (patch) | |
tree | 23286e83e9263ab4c55623743c7bfc0a88ecccdd /src/net | |
parent | 991bbea87527e401704e6e4a3b8efc017bf6c71d (diff) |
net/Resolver: replace memset(0) with empty C++ initializer list
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/Resolver.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/Resolver.cxx b/src/net/Resolver.cxx index 36769a904..a4fb5f387 100644 --- a/src/net/Resolver.cxx +++ b/src/net/Resolver.cxx @@ -149,8 +149,7 @@ Resolve(const char *host_and_port, int default_port, AddressInfoList Resolve(const char *host_port, unsigned default_port, int flags, int socktype) { - addrinfo hints; - memset(&hints, 0, sizeof(hints)); + struct addrinfo hints{}; hints.ai_flags = flags; hints.ai_family = AF_UNSPEC; hints.ai_socktype = socktype; |