From 5d6caa6b797644b55d136eaaef5f15904dfcfc90 Mon Sep 17 00:00:00 2001 From: Zbigniew Zdanowicz Date: Tue, 29 Nov 2022 15:54:40 +0000 Subject: [PATCH] initialize local variables Signed-off-by: Zbigniew Zdanowicz --- level_zero/core/test/black_box_tests/zello_sandbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level_zero/core/test/black_box_tests/zello_sandbox.cpp b/level_zero/core/test/black_box_tests/zello_sandbox.cpp index 1e0a18ba2f..87bdda79e7 100644 --- a/level_zero/core/test/black_box_tests/zello_sandbox.cpp +++ b/level_zero/core/test/black_box_tests/zello_sandbox.cpp @@ -12,8 +12,8 @@ void executeMemoryTransferAndValidate(ze_context_handle_t &context, ze_device_handle_t &device, uint32_t flags, bool useImmediate, bool asyncMode, bool &outputValidationSuccessful) { - ze_command_queue_handle_t cmdQueue; - ze_command_list_handle_t cmdList; + ze_command_queue_handle_t cmdQueue = nullptr; + ze_command_list_handle_t cmdList = nullptr; ze_command_queue_desc_t cmdQueueDesc = {ZE_STRUCTURE_TYPE_COMMAND_QUEUE_DESC}; cmdQueueDesc.ordinal = getCommandQueueOrdinal(device);