Skip to content

Commit 092b2bd

Browse files
authored
Merge pull request #38691 from madmiraal/fix-eq-uninitialised-warning
Silence EQ::Band::c1, c2 and c3 may be used uninitialized warnings.
2 parents 02bcaa7 + d021439 commit 092b2bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

servers/audio/effects/eq.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ void EQ::set_preset_band_mode(Preset p_preset) {
125125
for (int i = 0; i < m_bands; i++) { \
126126
Band b; \
127127
b.freq = bands[i]; \
128+
b.c1 = b.c2 = b.c3 = 0; \
128129
band.push_back(b); \
129130
}
130131

0 commit comments

Comments
 (0)