diff --git a/sycl/source/detail/graph_impl.cpp b/sycl/source/detail/graph_impl.cpp index 408ba1351f6b1..92dac039ed90c 100644 --- a/sycl/source/detail/graph_impl.cpp +++ b/sycl/source/detail/graph_impl.cpp @@ -655,7 +655,7 @@ sycl::detail::pi::PiExtSyncPoint exec_graph_impl::enqueueNodeDirect( findRealDeps(Deps, N.lock(), MPartitionNodes[Node]); } sycl::detail::pi::PiExtSyncPoint NewSyncPoint; - sycl::detail::pi::PiExtCommandBufferCommand NewCommand; + sycl::detail::pi::PiExtCommandBufferCommand NewCommand = 0; pi_int32 Res = sycl::detail::enqueueImpCommandBufferKernel( Ctx, DeviceImpl, CommandBuffer, *static_cast((Node->MCommandGroup.get())),