From c7409775942606dec60cdd5e0fe47b16ebce4d32 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 9 Apr 2024 19:37:35 +0100 Subject: [PATCH] Update UnitTestFileGenerator.h --- test/unit/UnitTestFileGenerator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }