Skip to content
Commit d9aab69f authored by Dave Lacerte's avatar Dave Lacerte Committed by Benjamin Cabé
Browse files

net: coap: Fix uninitialized variable warning



The variable block_len in function coap_next_block_for_option()
can be used uninitialized in case of empty packet in
coap_packet_get_payload(). Mute the compiler warning with
default value of 0.

Signed-off-by: default avatarDave Lacerte <lacerte.dave@hydroquebec.com>
parent c97710cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment