Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
addaleax committed Nov 11, 2017
commit 0836e1147496382c156b752a806e266a183be5e3
3 changes: 0 additions & 3 deletions src/backtrace_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ void DumpBacktrace(FILE* fp) {
#if HAVE_EXECINFO_H
void* frames[256];
const int size = backtrace(frames, arraysize(frames));
if (size <= 0) {
return;
}
for (int i = 1; i < size; i += 1) {
void* frame = frames[i];
fprintf(fp, "%2d: ", i);
Expand Down