From 2830f85b056672f4cbcc61ca55437d625d0a58da Mon Sep 17 00:00:00 2001 From: Simon Wenner Date: Sun, 3 May 2015 01:45:55 +0200 Subject: [PATCH] fixed uninitialized variable (cppcheck) --- core/io/file_access_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/file_access_memory.cpp b/core/io/file_access_memory.cpp index 749f7d16419..c22d637d012 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]; };