Pārlūkot izejas kodu

fixed uninitialized variable (cppcheck)

Simon Wenner 10 gadi atpakaļ
vecāks
revīzija
2830f85b05
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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];
 	};