Skip to content

Commit f34b20b

Browse files
tomchynordicjm
authored andcommitted
[nrf noup] mcuboot: Fix warning
nrf-squash! [nrf noup] bootloader: Add bootloader requests Fix a warning for uninitialized variable. Ref: NCSDK-35733 Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 049dc0b commit f34b20b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

boot/bootutil/src/bootutil_public.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,9 @@ static int flash_area_to_image_slot(const struct flash_area *fa, uint32_t *slot)
563563

564564
++i;
565565
}
566+
567+
/* Image not found */
568+
*slot = UINT32_MAX;
566569
#else
567570
(void)fa;
568571
if (slot != NULL) {

0 commit comments

Comments
 (0)