From b42b6a7f60899a0351566daa7d4f486a2a04a4d9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 11 Feb 2009 11:57:24 -0500 Subject: COMP: Do not use modern empty init list syntax cmCTestLaunch first used an empty initializer list to zero-initialize a buffer, but this is not supported on older compilers. Instead we avoid the need for initialization altogether. --- Source/CTest/cmCTestLaunch.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CTest/cmCTestLaunch.cxx b/Source/CTest/cmCTestLaunch.cxx index 2b5dd6a..e68f524 100644 --- a/Source/CTest/cmCTestLaunch.cxx +++ b/Source/CTest/cmCTestLaunch.cxx @@ -198,7 +198,7 @@ void cmCTestLaunch::ComputeFileNames() // We hash the input command working dir and command line to obtain // a repeatable and (probably) unique name for log files. - char hash[33] = {}; + char hash[32]; cmsysMD5* md5 = cmsysMD5_New(); cmsysMD5_Initialize(md5); cmsysMD5_Append(md5, (unsigned char const*)(this->CWD.c_str()), -1); @@ -209,7 +209,7 @@ void cmCTestLaunch::ComputeFileNames() } cmsysMD5_FinalizeHex(md5, hash); cmsysMD5_Delete(md5); - this->LogHash = hash; + this->LogHash.assign(hash, 32); // We store stdout and stderr in temporary log files. this->LogOut = this->LogDir; -- cgit v0.12