Skip to content

Commit

Permalink
fixed uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sevec committed Jul 4, 2020
1 parent 7c46b18 commit a51a569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a51a569

Please sign in to comment.