Cactus: CCTK_ParameterWalk: Avoid uninitialized variable

Issue #2702 resolved
Erik Schnetter created an issue

Ensure `next_index` is re-initialized every time.

Otherwise there is a code path where CCTK_ParameterWalk is called with first=1, where next_index is not reset to 0 before it is used.

Comments (4)

  1. Log in to comment