diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-10-28 23:16:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-10-28 23:16:32 +0200 |
| commit | 69899e04a7cee18fe235f5bc93a9034dd6aaf9b1 (patch) | |
| tree | 449c4dbebc1b61c016ab2e6356488a5fca0cb082 /src/lib/timer.h | |
| parent | 74db510bf375e74b5c8bbde6be2dc287e1654ac5 (diff) | |
Fix uninitialised variable.
Diffstat (limited to 'src/lib/timer.h')
| -rw-r--r-- | src/lib/timer.h | 2 |
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; }; |
