vtol_att_control: prevent segfault when no command line args given

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman 2018-03-01 16:37:42 +01:00 committed by Daniel Agar
parent 198708ba2e
commit ee2163ce69

View File

@ -767,6 +767,7 @@ int vtol_att_control_main(int argc, char *argv[])
{
if (argc < 2) {
PX4_WARN("usage: vtol_att_control {start|stop|status}");
return 1;
}
if (!strcmp(argv[1], "start")) {