Cactus: CCTK_ParameterWalk: Avoid uninitialized variable

Merged
#150 · Created  · Last updated

Merged pull request

Merged in eschnett/parameters-init (pull request #150)

6f3d8ad·Author: ·Closed by: ·2023-02-27

Description

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.

0 attachments

0 comments

Loading commits...