lib: updatehub: Init hints variable

The hints variable is used without a defined state. This fill the struct
with zeros to set variable at a well known state.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
This commit is contained in:
Gerson Fernando Budke 2020-05-28 23:10:55 -03:00 committed by Carles Cufí
commit d16517e575

View file

@ -153,6 +153,8 @@ static bool start_coap_client(void)
int resolve_attempts = 10;
int ret = -1;
memset(&hints, 0, sizeof(hints));
if (IS_ENABLED(CONFIG_NET_IPV6)) {
hints.ai_family = AF_INET6;
hints.ai_socktype = SOCK_STREAM;