From d8fdbdb9fd264ad2753ed79ae48730a3a1b41c75 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 16 Oct 2018 12:19:30 +0200 Subject: [PATCH] CycleTimer: Add missing initialization (CID 1396168) This fixes a warning from Coverity Scan. Signed-off-by: Stefan Weil --- unittest/cycletimer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/unittest/cycletimer.h b/unittest/cycletimer.h index c5f5568ce2..e1a1371952 100644 --- a/unittest/cycletimer.h +++ b/unittest/cycletimer.h @@ -25,6 +25,7 @@ class CycleTimer { void Reset() { running_ = false; sum_ = 0; + start_ = 0; } // When Start() is called multiple times, only the most recent is used.