diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2022-03-27 15:50:56 -0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-03-27 16:43:05 -0700 |
commit | 83e96569edbc47382e495685eaf5bb334692bd4a (patch) | |
tree | 66485320f67438ba70eeaab91b4ea0b33376f70b | |
parent | ecc0459f763ea4f0294a9ba00e9050aba7fd3907 (diff) | |
download | serenity-83e96569edbc47382e495685eaf5bb334692bd4a.zip |
LibAudio: Make sure we initialize ResampleHelper member variables
Found by Static Analysis: Sonar Cloud
-rw-r--r-- | Userland/Libraries/LibAudio/Resampler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibAudio/Resampler.h b/Userland/Libraries/LibAudio/Resampler.h index 6ff633fb92..c7c7328df8 100644 --- a/Userland/Libraries/LibAudio/Resampler.h +++ b/Userland/Libraries/LibAudio/Resampler.h @@ -80,8 +80,8 @@ private: const u32 m_source; const u32 m_target; u32 m_current_ratio { 0 }; - SampleType m_last_sample_l; - SampleType m_last_sample_r; + SampleType m_last_sample_l {}; + SampleType m_last_sample_r {}; }; class Buffer; |