Skip to content

Commit

Permalink
manage: fix error check in backtrace codepath
Browse files Browse the repository at this point in the history
  • Loading branch information
pkova committed Sep 16, 2024
1 parent 62e4cc2 commit df8e34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/noun/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ u3m_stacktrace()

strings = backtrace_symbols(array, size);

if ( strings == NULL ) {
if ( strings[0] == NULL ) {
fprintf(stderr, "Backtrace failed\r\n");
}
else {
Expand Down

0 comments on commit df8e34e

Please sign in to comment.