Null check before setting offset

[ROCm/clr commit: f17c897751]
Cette révision appartient à :
Rahul Garg
2018-07-24 12:25:40 +05:30
Parent 99758b3064
révision 792b9ebe7c
+2 -1
Voir le fichier
@@ -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);
}