Skip to content

Commit ed537bc

Browse files
authored
[SYCL] Initialize the variable to make a static code analyzer happy (#3725)
1 parent 1754934 commit ed537bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2467,7 +2467,7 @@ pi_result piMemBufferCreate(pi_context Context, pi_mem_flags Flags, size_t Size,
24672467
die("piMemBufferCreate: no mem properties goes to Level-Zero RT yet");
24682468
}
24692469

2470-
void *Ptr;
2470+
void *Ptr = nullptr;
24712471

24722472
// We treat integrated devices (physical memory shared with the CPU)
24732473
// differently from discrete devices (those with distinct memories).

0 commit comments

Comments
 (0)