diff --git a/test/unit/UnitTestFileGenerator.h b/test/unit/UnitTestFileGenerator.h index f14bc8607..6c5a8346d 100644 --- a/test/unit/UnitTestFileGenerator.h +++ b/test/unit/UnitTestFileGenerator.h @@ -61,7 +61,7 @@ inline FILE* MakeTmpFile(char* tmplate) return nullptr; } FILE *fs = nullptr; - auto err = fopen_s(&fs, tmplate, "w+"); + err = fopen_s(&fs, tmplate, "w+"); EXPECT_EQ(err, 0); return fs; }