Skip to content

Commit 4387a73

Browse files
addaleaxMylesBorins
authored andcommitted
src: remove superfluous check in backtrace_posix.cc
The error check doesn't matter because a failure would be ignored as part of the loop condition. PR-URL: #16950 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 45ca714 commit 4387a73

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/backtrace_posix.cc

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ void DumpBacktrace(FILE* fp) {
2525
#if HAVE_EXECINFO_H
2626
void* frames[256];
2727
const int size = backtrace(frames, arraysize(frames));
28-
if (size <= 0) {
29-
return;
30-
}
3128
for (int i = 1; i < size; i += 1) {
3229
void* frame = frames[i];
3330
fprintf(fp, "%2d: ", i);

0 commit comments

Comments
 (0)