summaryrefslogtreecommitdiff
path: root/src/lib/timer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-28 23:16:32 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-28 23:16:32 +0200
commit69899e04a7cee18fe235f5bc93a9034dd6aaf9b1 (patch)
tree449c4dbebc1b61c016ab2e6356488a5fca0cb082 /src/lib/timer.h
parent74db510bf375e74b5c8bbde6be2dc287e1654ac5 (diff)
Fix uninitialised variable.
Diffstat (limited to 'src/lib/timer.h')
-rw-r--r--src/lib/timer.h2
1 files changed, 1 insertions, 1 deletions
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<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;
};