summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-02-28 22:12:09 +0100
committerGitHub <noreply@github.com>2018-02-28 22:12:09 +0100
commit77e8cb2655e877c2e2da7bc8f3b87b184fef5fb3 (patch)
tree19e65ebbcc65823ab297a1e43f4adfb9c88dda44 /core
parentc6dff58f491c30ffc2a81a8d69da86ff8105053f (diff)
parentd702d7b335c0c9305e75131770c0ea739b70d813 (diff)
Merge pull request #17117 from hpvb/fix-use-uninitialized-redux
Fix various valgrind reported uninitialized variable uses
Diffstat (limited to 'core')
-rw-r--r--core/command_queue_mt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/command_queue_mt.h b/core/command_queue_mt.h
index 3942b961d3..c1439bdc4c 100644
--- a/core/command_queue_mt.h
+++ b/core/command_queue_mt.h
@@ -309,9 +309,9 @@ class CommandQueueMT {
};
uint8_t command_mem[COMMAND_MEM_SIZE];
- uint32_t read_ptr;
- uint32_t write_ptr;
- uint32_t dealloc_ptr;
+ uint32_t read_ptr = 0;
+ uint32_t write_ptr = 0;
+ uint32_t dealloc_ptr = 0;
SyncSemaphore sync_sems[SYNC_SEMAPHORES];
Mutex *mutex;
Semaphore *sync;