diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-11-24 13:00:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 13:00:27 +0100 |
commit | 32b31a5fa47b1e068be98f3196cf5d83a2260667 (patch) | |
tree | 1216c119f5326964d34d9cab2ab78df911c1469f /core/os/file_access.cpp | |
parent | 4159baff6c564eaaec1cbe1e546805dd42b9148f (diff) | |
parent | 7bd03b718871137740c6bf074e984bba8dc113c3 (diff) |
Merge pull request #43730 from qarmin/core_drivers_default_values
Initialize class/struct variables with default values in core/ and drivers/
Diffstat (limited to 'core/os/file_access.cpp')
-rw-r--r-- | core/os/file_access.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index fd3c6f8806..b962f61e1f 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -254,8 +254,8 @@ class CharBuffer { Vector<char> vector; char stack_buffer[256]; - char *buffer; - int capacity; + char *buffer = nullptr; + int capacity = 0; int written = 0; bool grow() { |