Skip to content

Commit

Permalink
Fix segfault related to district for 8.8 [ANT-2452] (#2519)
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin authored Dec 3, 2024
1 parent 8f10925 commit da687d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/solver/variable/surveyresults/surveyresults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,14 +522,12 @@ SurveyResults::SurveyResults(const Data::Study& s,
nonApplicableStatus[i] = false;

uint nbAreas = s.areas.size();
uint nbSetsOfAreas = s.areas.size();
uint nbSetsOfAreas = s.setsOfAreas.size();
digestSize = (nbAreas > nbSetsOfAreas) ? nbAreas : nbSetsOfAreas;
digestNonApplicableStatus = new bool*[digestSize];
for (uint i = 0; i < digestSize; i++)
{
digestNonApplicableStatus[i] = new bool[maxVariables];
for (uint v = 0; v < maxVariables; v++)
digestNonApplicableStatus[i][v] = false;
digestNonApplicableStatus[i] = new bool[maxVariables]{false};
}
}

Expand Down

0 comments on commit da687d6

Please sign in to comment.