diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-22 23:37:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-22 23:37:28 +0200 |
commit | 460eb42ae913700903df7b25d50282397da95395 (patch) | |
tree | f55c25abed9efef64df152f937bc17a370e65e1e /facetracknoir | |
parent | fbf579e102af6eb178d9b4b07f0e1e3956985e56 (diff) |
fix timer uninitialized memory access
Diffstat (limited to 'facetracknoir')
-rw-r--r-- | facetracknoir/timer.hpp | 2 |
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() { |