Commit 9015a5d4 authored by David Vincze's avatar David Vincze Committed by David Brown
Browse files

boot: Fix uninitialized variable warning

Fix uninitialized variable warning that may occur when
compiler optimization is enabled (especially for size).

Change-Id: Id56669a2079ac20edbf74c17f943c974f1e8bf93
Signed-off-by: default avatarDavid Vincze <david.vincze@linaro.org>
parent 45b00acf
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
@@ -1583,7 +1583,7 @@ context_boot_go(struct boot_loader_state *state, struct boot_rsp *rsp)
{
    size_t slot;
    struct boot_status bs;
    int rc;
    int rc = -1;
    int fa_id;
    int image_index;
    bool has_upgrade;