[ET Trac] #2702: Cactus: CCTK_ParameterWalk: Avoid uninitialized variable

Erik Schnetter trac-noreply at einsteintoolkit.org
Sun Feb 26 10:32:53 CST 2023


#2702: Cactus: CCTK_ParameterWalk: Avoid uninitialized variable

 Reporter: Erik Schnetter
   Status: new
Milestone: 
  Version: 
     Type: bug
 Priority: major
Component: Cactus

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.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2702/cactus-cctk_parameterwalk-avoid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/trac/attachments/20230226/340bcd2b/attachment.html 


More information about the Trac mailing list