samples: net: coap_client: Fix coverity issue

Fix uninitialized variable.

Coverity-CID: 190969
Fixes: #13850

Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
Ravi kumar Veeramally 2019-03-01 12:09:51 +02:00 committed by Carles Cufí
parent 1d50b92890
commit f860d31465

View file

@ -61,6 +61,7 @@ static int start_coap_client(void)
addr6.sin6_family = AF_INET6;
addr6.sin6_port = htons(PEER_PORT);
addr6.sin6_scope_id = 0;
inet_pton(AF_INET6, CONFIG_NET_CONFIG_PEER_IPV6_ADDR,
&addr6.sin6_addr);