From a51a569356c4dbca3bc219ecc1226406040315b0 Mon Sep 17 00:00:00 2001 From: pavel Date: Sat, 4 Jul 2020 17:09:51 +0200 Subject: [PATCH] fixed uninitialized variable --- Utils.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Utils.hpp b/Utils.hpp index 6ed0d0d..9a6e439 100644 --- a/Utils.hpp +++ b/Utils.hpp @@ -78,7 +78,8 @@ class ProgressMeter { public: ProgressMeter(int target, Progress&& func) - : func_(std::move(func)) { + : func_(std::move(func)) + , counter_(0) { step_ = std::max(target / 100, 10); next_ = step_; target_ = target;