summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-11 16:57:24 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-11 16:57:24 (GMT)
commitb42b6a7f60899a0351566daa7d4f486a2a04a4d9 (patch)
treeba10b9d9c048fa5aeb2b18aacb6f65470bf1f304 /Source
parent0847d825b37aba91a1c118f5dec45c245639a61a (diff)
downloadCMake-b42b6a7f60899a0351566daa7d4f486a2a04a4d9.zip
CMake-b42b6a7f60899a0351566daa7d4f486a2a04a4d9.tar.gz
CMake-b42b6a7f60899a0351566daa7d4f486a2a04a4d9.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestLaunch.cxx4
1 files 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;