From 7d95b1ddd367c593ad56a103d6b8db8433d7a15e Mon Sep 17 00:00:00 2001 From: Jaaaky <43599380+Jaaaky@users.noreply.github.com> Date: Sun, 6 Mar 2022 20:04:30 +0300 Subject: [PATCH] AP_FlashIface: Fixed could be used unintialized --- libraries/AP_FlashIface/AP_FlashIface_JEDEC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_FlashIface/AP_FlashIface_JEDEC.cpp b/libraries/AP_FlashIface/AP_FlashIface_JEDEC.cpp index 7447187928..193b1cd78a 100644 --- a/libraries/AP_FlashIface/AP_FlashIface_JEDEC.cpp +++ b/libraries/AP_FlashIface/AP_FlashIface_JEDEC.cpp @@ -668,7 +668,7 @@ bool AP_FlashIface_JEDEC::start_sector_erase(uint32_t sector, uint32_t &delay_ms bool AP_FlashIface_JEDEC::start_erase_offset(uint32_t offset, uint32_t size, uint32_t &erasing, uint32_t &delay_ms, uint32_t &timeout_ms) { - uint8_t ins; + uint8_t ins = 0; uint32_t erase_size = 0; erasing = 0; // Find the maximum size we can erase