Explorar o código

Initialized stride variable to prevent compiler warnings about potential use of unassigned variable.

Sherief Farouk %!s(int64=12) %!d(string=hai) anos
pai
achega
04b0ea3f9a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/FBXParser.cpp

+ 1 - 1
code/FBXParser.cpp

@@ -512,7 +512,7 @@ void ReadBinaryDataArray(char type, uint32_t count, const char*& data, const cha
 	ai_assert(data + comp_len == end);
 	ai_assert(data + comp_len == end);
 
 
 	// determine the length of the uncompressed data by looking at the type signature
 	// determine the length of the uncompressed data by looking at the type signature
-	uint32_t stride;
+	uint32_t stride = 0;
 	switch(type)
 	switch(type)
 	{
 	{
 	case 'f':
 	case 'f':