Skip to content

Commit 049dc0b

Browse files
tomchynordicjm
authored andcommitted
[nrf fromtree] bootutil: Fix minor issues
Fix uninitialized variable warning as well as compile time issue, when the slotted dependencies are enabled. Signed-off-by: Tomasz Chyrowicz <[email protected]> (cherry picked from commit 9ca088179e611ebd0054b0ef503039132c7a0ad1)
1 parent 7c44ed0 commit 049dc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ boot_verify_slot_dependencies(struct boot_loader_state *state, uint32_t slot)
612612

613613
#ifdef MCUBOOT_VERSION_CMP_USE_SLOT_NUMBER
614614
/* Validate against possible dependency slot values. */
615-
switch(dep->slot) {
615+
switch(dep.slot) {
616616
case VERSION_DEP_SLOT_ACTIVE:
617617
case VERSION_DEP_SLOT_PRIMARY:
618618
case VERSION_DEP_SLOT_SECONDARY:

0 commit comments

Comments
 (0)