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);