mgmt: mcumgr: img_mgmt_client: avoid using uninitialized variable
Make sure temp_data is initialized before use. Fixes: #68636 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
9e28e9e564
commit
adeaa63bb7
1 changed files with 1 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ static size_t upload_message_header_size(struct img_gr_upload *upload_state)
|
|||
int map_count;
|
||||
zcbor_state_t zse[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2];
|
||||
uint8_t temp_buf[MCUMGR_UPLOAD_INIT_HEADER_BUF_SIZE];
|
||||
uint8_t temp_data;
|
||||
uint8_t temp_data = 0U;
|
||||
|
||||
/* Calculation of message header with data length of 1 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue