Skip to content

Commit 9ee4588

Browse files
committed
init variable Handle
1 parent de12ff1 commit 9ee4588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/loader/layers/sanitizer/ur_sanddi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ __urdlllocal ur_result_t UR_APICALL urMemBufferCreate(
470470
getContext()->interceptor->getContextInfo(hContext);
471471
for (const auto &hDevice : CtxInfo->DeviceList) {
472472
ManagedQueue InternalQueue(hContext, hDevice);
473-
char *Handle;
473+
char *Handle = nullptr;
474474
UR_CALL(pMemBuffer->getHandle(hDevice, Handle));
475475
UR_CALL(getContext()->urDdiTable.Enqueue.pfnUSMMemcpy(
476476
InternalQueue, true, Handle, Host, size, 0, nullptr, nullptr));

0 commit comments

Comments
 (0)