Skip to content

Commit 876dcaf

Browse files
committed
Initialize local variable and remove duplicate line
1 parent c4012f5 commit 876dcaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

highs/mip/HighsDebugSol.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void HighsDebugSol::activate() {
3636
std::string varname;
3737
double varval;
3838
std::string line;
39-
bool incolsection;
39+
bool incolsection = false;
4040
std::map<std::string, int> nametoidx;
4141

4242
for (HighsInt i = 0; i != mipsolver->orig_model_->num_col_; ++i)
@@ -62,7 +62,6 @@ void HighsDebugSol::activate() {
6262
debugOrigSolution[it->second] = varval;
6363
highsLogDev(mipsolver->options_mip_->log_options, HighsLogType::kInfo,
6464
"%s = %g\n", varname.c_str(), varval);
65-
debugOrigSolution[it->second] = varval;
6665
}
6766
}
6867
debugSolution = debugOrigSolution;

0 commit comments

Comments
 (0)