Skip to content

Commit

Permalink
explicit memset to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
bodono committed Jun 28, 2024
1 parent 6913906 commit d81a031
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/problems/test_prob_from_data_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ static const char *_test_prob_from_data(const char *file, scs_float OPT) {
sol = (ScsSolution *)scs_calloc(1, sizeof(ScsSolution));
exitflag = scs(d, k, stgs, sol, &info);

memset(px, 0, n * sizeof(scs_float));
if (d->P) {
/* px = Px */
SCS(accum_by_p)(d->P, sol->x, px);
Expand Down

0 comments on commit d81a031

Please sign in to comment.