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:
parent
9a43250667
commit
d16517e575
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue