fix incorrect argc < 1 check for no arguments

-requiring arguments should be argc < 2
This commit is contained in:
Daniel Agar
2015-04-18 12:02:58 +02:00
committed by Lorenz Meier
parent 63d741e368
commit 2e824bbeea
28 changed files with 38 additions and 28 deletions
@@ -97,8 +97,9 @@ usage(const char *reason)
int fixedwing_backside_main(int argc, char *argv[])
{
if (argc < 1)
if (argc < 2) {
usage("missing command");
}
if (!strcmp(argv[1], "start")) {