fixing all "argc < 1" to avoid segmentation fault when calling the module with no parameters

argc is never smaller than one because the first element of the array is the program name!
This commit is contained in:
MaEtUgR
2016-03-13 17:52:33 +01:00
committed by Lorenz Meier
parent cecec86081
commit d1e0cbe325
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -751,7 +751,7 @@ int Ekf2::start()
int ekf2_main(int argc, char *argv[])
{
if (argc < 1) {
if (argc < 2) {
PX4_WARN("usage: ekf2 {start|stop|status}");
return 1;
}