1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-31 18:54:07 -05:00
Files
putty-source/utils
Simon Tatham c2077f888c Fix compile warnings in tree234 tests.
I'm not sure why these have never bothered me before, but a test build
I just made for a completely different reason complained about them!

findtest() did a binary search using a while loop, and then used
variables set in the loop body, which gcc objected to on the grounds
that the body might have run 0 times and not initialised those
variables. Also in the same function gcc objected to the idea that
findrelpos234() might have returned NULL and not set 'index'. I think
neither of these things can actually have _happened_, but let's stop
the compiler complaining anyway.
2024-12-19 08:35:33 +00:00
..