Commit 2938417
committed
fix(sfloader): move INFO chunk FLUID_LOG into the branch where item.chr is allocated
The debug log referencing item.chr was placed at the end of the outer
else block, reachable by code paths where item.fcc was never allocated,
causing a potential NULL pointer dereference and a -Wmaybe-uninitialized
warning. Move the log to immediately after the successful fread(), where
item.chr is guaranteed to be valid.
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>1 parent 148d10b commit 2938417
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| 858 | + | |
858 | 859 | | |
859 | 860 | | |
860 | 861 | | |
| |||
873 | 874 | | |
874 | 875 | | |
875 | 876 | | |
876 | | - | |
877 | 877 | | |
878 | 878 | | |
879 | 879 | | |
| |||
0 commit comments