From 9605cf1f2973475d407e721ce1ce1c9e32e8c3e9 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 2 Feb 2024 15:34:24 +0000 Subject: [PATCH] [CUDA] Always initialized AddrMode array --- source/adapters/cuda/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/adapters/cuda/image.cpp b/source/adapters/cuda/image.cpp index 09aa955c22..f03eb50c48 100644 --- a/source/adapters/cuda/image.cpp +++ b/source/adapters/cuda/image.cpp @@ -252,7 +252,7 @@ ur_result_t urTextureCreate(ur_sampler_handle_t hSampler, /// | 1 | filter mode /// | 0 | normalize coords CUDA_TEXTURE_DESC ImageTexDesc = {}; - CUaddress_mode AddrMode[3]; + CUaddress_mode AddrMode[3] = {}; for (size_t i = 0; i < 3; i++) { ur_sampler_addressing_mode_t AddrModeProp = hSampler->getAddressingModeDim(i);