Fix uninitialised variable.
authorCarl Hetherington <cth@carlh.net>
Sat, 28 Oct 2023 21:16:32 +0000 (23:16 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 28 Oct 2023 21:16:32 +0000 (23:16 +0200)
src/lib/timer.h

index 6435155c6c88d774d87f0bb67385a9e9065d2c30..be3706607811d4c7c668430bf652162d7d434562 100644 (file)
@@ -99,7 +99,7 @@ private:
        /** current state */
        boost::optional<std::string> _state;
        /** time that _state was entered */
-       double _time;
+       double _time = 0;
        /** total time and number of entries for each state */
        std::map<std::string, Counts> _counts;
 };