Skip to content

Commit f860d31

Browse files
rveerama1carlescufi
authored andcommitted
samples: net: coap_client: Fix coverity issue
Fix uninitialized variable. Coverity-CID: 190969 Fixes: #13850 Signed-off-by: Ravi kumar Veeramally <[email protected]>
1 parent 1d50b92 commit f860d31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/net/sockets/coap_client/src/coap-client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ static int start_coap_client(void)
6161

6262
addr6.sin6_family = AF_INET6;
6363
addr6.sin6_port = htons(PEER_PORT);
64+
addr6.sin6_scope_id = 0;
6465

6566
inet_pton(AF_INET6, CONFIG_NET_CONFIG_PEER_IPV6_ADDR,
6667
&addr6.sin6_addr);

0 commit comments

Comments
 (0)