Преглед изворни кода

Merge pull request #489 from Armagetron/master

Use correct file pointer
Lee Thomason пре 9 година
родитељ
комит
15ad07170d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      xmltest.cpp

+ 1 - 1
xmltest.cpp

@@ -1618,7 +1618,7 @@ int main( int argc, const char ** argv )
 
 		FILE* perfFP = fopen("resources/dream.xml", "r");
 		fseek(perfFP, 0, SEEK_END);
-		long size = ftell(fp);
+		long size = ftell(perfFP);
 		fseek(perfFP, 0, SEEK_SET);
 
 		char* mem = new char[size + 1];