diff options
author | Rafał Mikrut <mikrutrafal@protonmail.com> | 2020-11-23 17:38:46 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal@protonmail.com> | 2020-11-23 17:38:46 +0100 |
commit | 7bd03b718871137740c6bf074e984bba8dc113c3 (patch) | |
tree | c83a11a1ddae811a0ac2f7246f423678de2a106e /core/io/file_access_encrypted.h | |
parent | 18023cc3ede6fd84842db77019085c383e807016 (diff) | |
download | redot-engine-7bd03b718871137740c6bf074e984bba8dc113c3.tar.gz |
Initialize class/struct variables with default values in core/ and drivers/
Diffstat (limited to 'core/io/file_access_encrypted.h')
-rw-r--r-- | core/io/file_access_encrypted.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/file_access_encrypted.h b/core/io/file_access_encrypted.h index fddc6842f3..c760933038 100644 --- a/core/io/file_access_encrypted.h +++ b/core/io/file_access_encrypted.h @@ -47,8 +47,8 @@ private: Vector<uint8_t> key; bool writing = false; FileAccess *file = nullptr; - size_t base; - size_t length; + size_t base = 0; + size_t length = 0; Vector<uint8_t> data; mutable int pos = 0; mutable bool eofed = false; |