aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorHein-Pieter van Braam2018-02-28 21:55:13 +0100
committerHein-Pieter van Braam2018-03-01 21:06:31 +0100
commit675899a521422a97835660b5a7b09dad851884d0 (patch)
tree2c5fab30b4387f9070ce04c63b0a720e58b469f5 /core
parent61a9ef5d81acad525cb1c98829b6be4e11f8bef0 (diff)
downloadgodot-675899a521422a97835660b5a7b09dad851884d0.tar.gz
godot-675899a521422a97835660b5a7b09dad851884d0.tar.zst
godot-675899a521422a97835660b5a7b09dad851884d0.zip
Fix various valgrind reported uninitialized variable uses
(cherry picked from commit d702d7b335c0c9305e75131770c0ea739b70d813)
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 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;