mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-10 13:33:49 -04:00
ft4: Initialize uninitialized decoder members
cppcheck reported uninitialized scalar members in the FT4 constructor. Initialize pass_ and cached sample values hack_0_ and hack_1_ to avoid undefined behavior when these members are used before assignment. Signed-off-by: Robin Getz <rgetz503@gmail.com>
This commit is contained in:
@@ -122,6 +122,9 @@ FT4::FT4(
|
||||
hack_len_ = -1;
|
||||
fftEngine_ = fftEngine;
|
||||
npasses_ = 1;
|
||||
pass_ = 0;
|
||||
hack_0_ = 0.0f;
|
||||
hack_1_ = 0.0f;
|
||||
}
|
||||
|
||||
void FT4::start_work()
|
||||
|
||||
Reference in New Issue
Block a user