summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-22 23:37:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-22 23:37:28 +0200
commit460eb42ae913700903df7b25d50282397da95395 (patch)
treef55c25abed9efef64df152f937bc17a370e65e1e /facetracknoir
parentfbf579e102af6eb178d9b4b07f0e1e3956985e56 (diff)
fix timer uninitialized memory access
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/timer.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/facetracknoir/timer.hpp b/facetracknoir/timer.hpp
index 24d62e37..d2df1efd 100644
--- a/facetracknoir/timer.hpp
+++ b/facetracknoir/timer.hpp
@@ -53,8 +53,8 @@ public:
long start() {
struct timespec cur;
(void) clock_gettime(CLOCK_MONOTONIC, &cur);
- int ret = conv(cur);
state = cur;
+ int ret = conv(cur);
return ret;
}
long elapsed() {