Fixed issue with argc check

Was checking if argc < 1 and then accessing argv[1]. Fixed by
checking if argc < 2.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-20 11:35:48 -07:00
parent edf8677c37
commit 639afeb28f
@@ -128,7 +128,7 @@ int attitude_estimator_ekf_main(int argc, char *argv[])
if (thread_running) { if (thread_running) {
warnx("already running\n"); warnx("already running\n");
/* this is not an error */ /* this is not an error */
exit(0); return 0;
} }
thread_should_exit = false; thread_should_exit = false;