Unverified Commit dcc30766 authored by Lucas Saavedra Vaz's avatar Lucas Saavedra Vaz Committed by GitHub

Fix NetworkManager compilation warning (#9452)

parent 64235dc6
...@@ -67,10 +67,11 @@ int NetworkManager::hostByName(const char* aHostname, IPAddress& aResult) ...@@ -67,10 +67,11 @@ int NetworkManager::hostByName(const char* aHostname, IPAddress& aResult)
const char *servname = "0"; const char *servname = "0";
struct addrinfo *res; struct addrinfo *res;
const struct addrinfo hints = { struct addrinfo hints;
.ai_family = AF_UNSPEC, memset(&hints, 0, sizeof(hints));
.ai_socktype = SOCK_STREAM, hints.ai_family = AF_UNSPEC;
}; hints.ai_socktype = SOCK_STREAM;
err = lwip_getaddrinfo(aHostname, servname, &hints, &res); err = lwip_getaddrinfo(aHostname, servname, &hints, &res);
if (err == ERR_OK) if (err == ERR_OK)
{ {
......
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