boot: Fix uninitialized variable warning
Fix uninitialized variable warning that may occur when
compiler optimization is enabled (especially for size).
@@ -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;
