AP_HAL_SITL: prevent dump_stack_trace() blowing up on macOS

This commit is contained in:
Andy Piper 2020-01-04 11:39:28 +00:00 committed by Peter Barker
parent 1817280e01
commit a469a31528
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ void dump_stack_trace()
progname[n] = 0;
p = strrchr(progname, '/');
*p = 0;
if (p != nullptr) {
*p = 0;
} else {
p = progname;
}
char output_filepath[30];
snprintf(output_filepath,