Skip to content

Commit ee17bfa

Browse files
Update compiler-rt/lib/profile/InstrProfilingUtil.c
Co-authored-by: Hubert Tong <[email protected]>
1 parent bfe6fa9 commit ee17bfa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/lib/profile/InstrProfilingUtil.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ static int is_local_filesystem(int Fd) {
283283
int Tries = 3;
284284
while (Tries--) {
285285
Buf = malloc(BufSize);
286+
// mntctl returns -1 if `Buf` is `NULL`.
286287
Ret = mntctl(MCTL_QUERY, BufSize, Buf);
287288
if (Ret != 0)
288289
break;

0 commit comments

Comments
 (0)