summaryrefslogtreecommitdiffstats
path: root/core/io/file_access_encrypted.h
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2020-11-23 17:38:46 +0100
committerRafał Mikrut <mikrutrafal@protonmail.com>2020-11-23 17:38:46 +0100
commit7bd03b718871137740c6bf074e984bba8dc113c3 (patch)
treec83a11a1ddae811a0ac2f7246f423678de2a106e /core/io/file_access_encrypted.h
parent18023cc3ede6fd84842db77019085c383e807016 (diff)
downloadredot-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.h4
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;