diff --git a/tests/catch/unit/memory/hipMemcpy3D.cc b/tests/catch/unit/memory/hipMemcpy3D.cc index 1fa4ce0576..75fc8efe0c 100644 --- a/tests/catch/unit/memory/hipMemcpy3D.cc +++ b/tests/catch/unit/memory/hipMemcpy3D.cc @@ -272,6 +272,7 @@ void Memcpy3D::NegativeTests() { AllocateMemory(); // Initialization of data + memset(&myparms, 0, sizeof(myparms)); myparms.srcPos = make_hipPos(0, 0, 0); myparms.dstPos = make_hipPos(0, 0, 0); myparms.extent = make_hipExtent(width , height, depth); diff --git a/tests/catch/unit/memory/hipMemcpy3DAsync.cc b/tests/catch/unit/memory/hipMemcpy3DAsync.cc index 017556967c..fb2fa8e1dc 100644 --- a/tests/catch/unit/memory/hipMemcpy3DAsync.cc +++ b/tests/catch/unit/memory/hipMemcpy3DAsync.cc @@ -290,6 +290,7 @@ void Memcpy3DAsync::NegativeTests() { HIP_CHECK(hipStreamCreate(&stream)); // Initialization of data + memset(&myparms, 0, sizeof(myparms)); myparms.srcPos = make_hipPos(0, 0, 0); myparms.dstPos = make_hipPos(0, 0, 0); myparms.extent = make_hipExtent(width , height, depth);