diff --git a/projects/hip-tests/catch/multiproc/hipNoGpuTsts.cc b/projects/hip-tests/catch/multiproc/hipNoGpuTsts.cc index bf8650c47e..e54d10b03e 100644 --- a/projects/hip-tests/catch/multiproc/hipNoGpuTsts.cc +++ b/projects/hip-tests/catch/multiproc/hipNoGpuTsts.cc @@ -372,7 +372,7 @@ static bool NoGpuTst_hipPointerGetAttributes() { bool passed = false; hipError_t err; hipPointerAttribute_t attributes = {}; - char* A_d; + char* A_d = nullptr; err = hipPointerGetAttributes(&attributes, A_d); if (err == hipErrorNoDevice) { passed = true;