From 66eceb2fba928692220775c73b8aa4356b112934 Mon Sep 17 00:00:00 2001 From: Terry Moore Date: Sun, 12 Jun 2022 17:41:25 -0400 Subject: [PATCH] Fix #336: hush uninit var false positive --- src/lib/stm32/stm32l0/CatenaStm32L0_CalibrateSystemClock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/stm32/stm32l0/CatenaStm32L0_CalibrateSystemClock.cpp b/src/lib/stm32/stm32l0/CatenaStm32L0_CalibrateSystemClock.cpp index d8affa0..b47053b 100644 --- a/src/lib/stm32/stm32l0/CatenaStm32L0_CalibrateSystemClock.cpp +++ b/src/lib/stm32/stm32l0/CatenaStm32L0_CalibrateSystemClock.cpp @@ -115,7 +115,7 @@ uint32_t CatenaStm32L0::CalibrateSystemClock(void) uint32_t CalibLow; uint32_t CalibHigh; uint32_t mSecond; - uint32_t mSecondNew; + uint32_t mSecondNew = 0; uint32_t mSecondLow; uint32_t mSecondHigh; bool fHaveSeenLow;