diff options
author | Simon Wenner <simon@wenner.ch> | 2015-05-03 01:45:55 +0200 |
---|---|---|
committer | Simon Wenner <simon@wenner.ch> | 2015-05-03 01:45:55 +0200 |
commit | 2830f85b056672f4cbcc61ca55437d625d0a58da (patch) | |
tree | 88030c4f2a6972bd03a433062fd3d2ce831ed746 | |
parent | 524d9fad59cd596bb291648c8c2e1b4a46fb2d02 (diff) |
fixed uninitialized variable (cppcheck)
-rw-r--r-- | core/io/file_access_memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/file_access_memory.cpp b/core/io/file_access_memory.cpp index 749f7d1641..c22d637d01 100644 --- a/core/io/file_access_memory.cpp +++ b/core/io/file_access_memory.cpp @@ -132,7 +132,7 @@ bool FileAccessMemory::eof_reached() const { uint8_t FileAccessMemory::get_8() const { - uint8_t ret; + uint8_t ret = 0; if (pos < length) { ret = data[pos]; }; |