Null check before setting offset
Ta zmiana jest zawarta w:
%! (template.HTML=
Rahul Garg)złożyło 2018-07-24 12:25:40 +05:30
1 rodzic
867a4aa971
złożenie
bc4cdf7e41
Plik 1 zmieniony
+2
-1
@@ -676,7 +676,8 @@ hipError_t hipGetTextureAlignmentOffset(size_t* offset, const textureReference*
|
||||
|
||||
auto ctx = ihipGetTlsDefaultCtx();
|
||||
if (ctx) {
|
||||
*offset = 0;
|
||||
if(offset != nullptr)
|
||||
*offset = 0;
|
||||
}
|
||||
return ihipLogStatus(hip_status);
|
||||
}
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika