mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 07:21:36 +08:00
vtol_att_control: prevent segfault when no command line args given
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -767,6 +767,7 @@ int vtol_att_control_main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
PX4_WARN("usage: vtol_att_control {start|stop|status}");
|
PX4_WARN("usage: vtol_att_control {start|stop|status}");
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(argv[1], "start")) {
|
if (!strcmp(argv[1], "start")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user