Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix issue #203 - Dose by region flag was not initialized. #222
I used to valgrind to fix this. mDoseByRegionsFlag was not initialized so issue #203 was randomly occuring. With mDoseByRegionsFlag set to true, I had the same error message. I added an error message to make the error more explicit but set mDoseByRegionsFlag to false by default.
referenced this pull request
Feb 13, 2019
Congratulations for fixing this bug !
No, this issue was not responsible of this bug. The code was testing a boolean which was never set. So it basically relied on what was in memory. Depending on what was done before with the memory now occupied by the boolean, it could have been true (non zero) or false (zero). So you could have different behaviors by switching the order of the commands but that was by luck.