Commit 4906375a authored by Erik Johnson's avatar Erik Johnson Committed by Fabio Utzig
Browse files

loader: Fixed warning about uninitialized rc variable

Might get past the loop without going in at least once.

Signed-off-by: default avatarErik Johnson <erik.johnson@nimbelink.com>
parent af14853b
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/bootutil/src/loader.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1205,7 +1205,7 @@ done:
static int
boot_verify_dependencies(struct boot_loader_state *state)
{
    int rc;
    int rc = -1;
    uint8_t slot;

    BOOT_CURR_IMG(state) = 0;