From 69899e04a7cee18fe235f5bc93a9034dd6aaf9b1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 28 Oct 2023 23:16:32 +0200 Subject: Fix uninitialised variable. --- src/lib/timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/timer.h b/src/lib/timer.h index 6435155c6..be3706607 100644 --- a/src/lib/timer.h +++ b/src/lib/timer.h @@ -99,7 +99,7 @@ private: /** current state */ boost::optional _state; /** time that _state was entered */ - double _time; + double _time = 0; /** total time and number of entries for each state */ std::map _counts; }; -- cgit v1.2.3