There was an error while loading. Please reload this page.
1 parent e4a8a52 commit 94c2b9eCopy full SHA for 94c2b9e
1 file changed
libraries/AP_HAL_SITL/SITL_State.cpp
@@ -40,7 +40,8 @@ void SITL_State::_parse_param_init_vals(const char *to_be_set, Param_Init_Values
40
41
char *for_parsing = strdup(to_be_set);
42
if (for_parsing == nullptr) {
43
- AP_HAL::panic("strdup failed (insufficient memory)");
+ printf("strdup failed (insufficient memory)");
44
+ exit(1);
45
}
46
47
char *saveptr = nullptr;
0 commit comments