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.
This commit is contained in:
Brad King 2009-02-11 11:57:24 -05:00
parent 0847d825b3
commit b42b6a7f60
1 changed files with 2 additions and 2 deletions

View File

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