mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-09 08:04:14 -03:00
HAL_SITL: fixed a build warning
This commit is contained in:
parent
73445fdae9
commit
249b339e6c
@ -71,7 +71,9 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
|
|||||||
char *autotest_dir = NULL;
|
char *autotest_dir = NULL;
|
||||||
float speedup = 1.0f;
|
float speedup = 1.0f;
|
||||||
|
|
||||||
asprintf(&autotest_dir, SKETCHBOOK "/Tools/autotest");
|
if (asprintf(&autotest_dir, SKETCHBOOK "/Tools/autotest") <= 0) {
|
||||||
|
hal.scheduler->panic("out of memory");
|
||||||
|
}
|
||||||
|
|
||||||
signal(SIGFPE, _sig_fpe);
|
signal(SIGFPE, _sig_fpe);
|
||||||
// No-op SIGPIPE handler
|
// No-op SIGPIPE handler
|
||||||
|
Loading…
Reference in New Issue
Block a user