Null check before setting offset

이 커밋은 다음에 포함됨:
Rahul Garg가 2018-07-24 12:25:40 +05:30를 커밋했습니다
1 부모 0ec64e8b24
커밋 f17c897751
1 파일이 변경됨
+2 -1
+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);
}