From 3c21d6fbb7613c69def5a30979403e1d75b7b1df Mon Sep 17 00:00:00 2001 From: Armagetron Date: Thu, 13 Oct 2016 13:31:23 +0200 Subject: [PATCH] Use correct file pointer --- xmltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmltest.cpp b/xmltest.cpp index 56d5d5a..f474951 100644 --- a/xmltest.cpp +++ b/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];