diff --git a/sycl/test-e2e/syclcompat/launch/launch.cpp b/sycl/test-e2e/syclcompat/launch/launch.cpp index 35fb14d297136..b2f0a2def40ec 100644 --- a/sycl/test-e2e/syclcompat/launch/launch.cpp +++ b/sycl/test-e2e/syclcompat/launch/launch.cpp @@ -119,7 +119,7 @@ void test_ptr_arg_launch() { std::cout << __PRETTY_FUNCTION__ << std::endl; LaunchTest lt; - int *int_ptr; + int *int_ptr = nullptr; syclcompat::launch(lt.range_1_, int_ptr); syclcompat::launch(lt.range_2_, int_ptr);