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-10 22:16:30 -07:00
parent edf8677c37
commit 639afeb28f

View File

@ -128,7 +128,7 @@ int attitude_estimator_ekf_main(int argc, char *argv[])
if (thread_running) {
warnx("already running\n");
/* this is not an error */
exit(0);
return 0;
}
thread_should_exit = false;