Explorar o código

fixed uninitialized variable (cppcheck)

Simon Wenner %!s(int64=10) %!d(string=hai) anos
pai
achega
2830f85b05
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/io/file_access_memory.cpp

+ 1 - 1
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];
 	};