projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74db510
)
Fix uninitialised variable.
author
Carl Hetherington
<cth@carlh.net>
Sat, 28 Oct 2023 21:16:32 +0000
(23:16 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 28 Oct 2023 21:16:32 +0000
(23:16 +0200)
src/lib/timer.h
patch
|
blob
|
history
diff --git
a/src/lib/timer.h
b/src/lib/timer.h
index 6435155c6c88d774d87f0bb67385a9e9065d2c30..be3706607811d4c7c668430bf652162d7d434562 100644
(file)
--- 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;
};