Properly initialize. (#6586)
authorGereon Kremer <nafur42@gmail.com>
Thu, 20 May 2021 18:50:50 +0000 (20:50 +0200)
committerGitHub <noreply@github.com>
Thu, 20 May 2021 18:50:50 +0000 (18:50 +0000)
This PR fixes a missing initialization that lead to a valgrind warning.

src/prop/bvminisat/bvminisat.h

index 6ec43025e2f83addbff9fa4c41af139052849fc2..3bfb2d93c0256bd9699983479799b4953be0edf7 100644 (file)
@@ -138,7 +138,7 @@ public:
    ReferenceStat<int64_t> d_statEliminatedVars;
    IntStat d_statCallsToSolve;
    TimerStat d_statSolveTime;
-   bool d_registerStats;
+   bool d_registerStats = true;
    Statistics(StatisticsRegistry& registry, const std::string& prefix);
    void init(BVMinisat::SimpSolver* minisat);
    void deinit();