Skip to content

Commit

Permalink
apply the suggested patch
Browse files Browse the repository at this point in the history
  • Loading branch information
xppt committed Apr 2, 2024
1 parent ecfdad4 commit 1b9dcf8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/symbolize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,7 @@ OpenObjectFileContainingPcAndGetStartAddress(uint64_t pc,
out_file_name[out_file_name_size - 1] = '\0';

// Finally, "cursor" now points to file name of our interest.
FileDescriptor object_fd{
FailureRetry([cursor] { return open(cursor, O_RDONLY); })};
if (!object_fd) {
return nullptr;
}
return object_fd;
return FileDescriptor{FailureRetry([cursor] { return open(cursor, O_RDONLY); })};
}
}

Expand Down

0 comments on commit 1b9dcf8

Please sign in to comment.