From 460eb42ae913700903df7b25d50282397da95395 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 22 Sep 2014 23:37:28 +0200 Subject: fix timer uninitialized memory access --- facetracknoir/timer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3