From 718c517dcda922b8e0c836d26876a159264cac04 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 18 Apr 2024 14:54:25 +0200 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 13b4fc2f0..dc0f4f7c3 100644 --- a/test/unit/UnitTestFileGenerator.h +++ b/test/unit/UnitTestFileGenerator.h @@ -56,7 +56,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # endif #include inline FILE* MakeTmpFile(char* tmplate) { - auto pathtemplate = template; + char *pathtemplate = tmplate; int err = _mktemp_s(pathtemplate, std::strlen(pathtemplate)); EXPECT_EQ(err, 0); EXPECT_NE(pathtemplate, nullptr);