Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit 1b9dcf8

Browse files
committed
apply the suggested patch
1 parent ecfdad4 commit 1b9dcf8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/symbolize.cc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -647,12 +647,7 @@ OpenObjectFileContainingPcAndGetStartAddress(uint64_t pc,
647647
out_file_name[out_file_name_size - 1] = '\0';
648648

649649
// Finally, "cursor" now points to file name of our interest.
650-
FileDescriptor object_fd{
651-
FailureRetry([cursor] { return open(cursor, O_RDONLY); })};
652-
if (!object_fd) {
653-
return nullptr;
654-
}
655-
return object_fd;
650+
return FileDescriptor{FailureRetry([cursor] { return open(cursor, O_RDONLY); })};
656651
}
657652
}
658653

0 commit comments

Comments
 (0)