Skip to content

Commit

Permalink
to stop valgrind complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Jan 21, 2024
1 parent 8cbc80a commit b28567b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CbcSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,9 @@ int CbcMain1(std::deque<std::string> inputQueue, CbcModel &model,
if (nchar<2)
continue;
if (line[0]!='-') {
memmove(line+1,line,nchar+1);
for (int i=nchar;i>=0;i--)
line[i+1] = line[i];
//memmove(line+1,line,nchar+1);
nchar++;
line[0]='-';
}
Expand Down

0 comments on commit b28567b

Please sign in to comment.