diff options
| author | Rémi Verschelde | 2018-02-28 22:12:09 +0100 |
|---|---|---|
| committer | GitHub | 2018-02-28 22:12:09 +0100 |
| commit | 77e8cb2655e877c2e2da7bc8f3b87b184fef5fb3 (patch) | |
| tree | 19e65ebbcc65823ab297a1e43f4adfb9c88dda44 /core/command_queue_mt.h | |
| parent | c6dff58f491c30ffc2a81a8d69da86ff8105053f (diff) | |
| parent | d702d7b335c0c9305e75131770c0ea739b70d813 (diff) | |
| download | godot-77e8cb2655e877c2e2da7bc8f3b87b184fef5fb3.tar.gz godot-77e8cb2655e877c2e2da7bc8f3b87b184fef5fb3.tar.zst godot-77e8cb2655e877c2e2da7bc8f3b87b184fef5fb3.zip | |
Merge pull request #17117 from hpvb/fix-use-uninitialized-redux
Fix various valgrind reported uninitialized variable uses
Diffstat (limited to 'core/command_queue_mt.h')
| -rw-r--r-- | core/command_queue_mt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/command_queue_mt.h b/core/command_queue_mt.h index 3942b961d..c1439bdc4 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; |
