2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[2275] valgrind fixes: uninitialized memory

This commit is contained in:
Jelte Jansen
2012-10-04 15:57:43 +02:00
committed by JINMEI Tatuya
parent 1c4ec91a6f
commit 3d98322d24

View File

@@ -34,7 +34,9 @@ class FDTest : public ::testing::Test {
// We do not care what is inside, we just need it to be the same
data(new unsigned char[TEST_DATA_SIZE]),
buffer(NULL)
{ }
{
memset(data, 0, TEST_DATA_SIZE);
}
~ FDTest() {
delete[] data;
delete[] buffer;