diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-08-15 10:06:14 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-08-15 10:06:14 +0200 |
commit | 6b1fa1637b03a9e4ddbac6aa99d936056c3d473f (patch) | |
tree | b69ddd9a80bc126aafa9483fbcb2acd9e0df4da3 /src/MemlessPoly.cpp | |
parent | 738a1e859737458d3ee9c5a8e92655bdd107a07e (diff) | |
download | dabmod-6b1fa1637b03a9e4ddbac6aa99d936056c3d473f.tar.gz dabmod-6b1fa1637b03a9e4ddbac6aa99d936056c3d473f.tar.bz2 dabmod-6b1fa1637b03a9e4ddbac6aa99d936056c3d473f.zip |
MemlessPoly: avoid uninitialised variables
Diffstat (limited to 'src/MemlessPoly.cpp')
-rw-r--r-- | src/MemlessPoly.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MemlessPoly.cpp b/src/MemlessPoly.cpp index 17a7f57..184b5bd 100644 --- a/src/MemlessPoly.cpp +++ b/src/MemlessPoly.cpp @@ -314,7 +314,7 @@ void MemlessPoly::worker_thread(MemlessPoly::worker_t *workerdata) set_thread_name("MemlessPoly"); while (true) { - worker_t::input_data_t in_data; + worker_t::input_data_t in_data = {}; try { workerdata->in_queue.wait_and_pop(in_data); } @@ -386,7 +386,7 @@ int MemlessPoly::internal_process(Buffer* const dataIn, Buffer* dataOut) // Wait for completion of the tasks for (auto& worker : m_workers) { - int ret; + int ret = 0; worker.out_queue.wait_and_pop(ret); } } |