This does look like a false positive to me: the if clauses that use fptr appear to only cover the same values as the switch-case statements. But harmless defensive change here.
From Deuc╨╡ to Git commit to main/sbbs/master on Sun Feb 11 14:19:07 2024
https://gitlab.synchro.net/main/sbbs/-/commit/fcc6e569e1e4584cbf424c73
Modified Files:
src/syncterm/ooii.c
Log Message:
Since xp_play_sample() no longer takes a const buffer, we need to
cast all the const buffers before passing them in and rely on
runtime crashes to find bugs rather than compile-time errors.
Thanks Microsoft. :D
From Deuc╨╡ to Git commit to main/sbbs/master on Wed Oct 2 21:16:03 2024