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:
Dave Lacerte <lacerte.dave@hydroquebec.com>
Loading
Please sign in to comment