mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_SITL: prevent dump_stack_trace() blowing up on macOS
This commit is contained in:
parent
1817280e01
commit
a469a31528
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue