Commit a784c8b1 authored by Max Kellermann's avatar Max Kellermann

net/Resolver: replace memset(0) with empty C++ initializer list

parent 991bbea8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment