Skip to content
Snippets Groups Projects
Commit 639afeb2 authored by Mark Charlebois's avatar Mark Charlebois
Browse files

Fixed issue with argc check


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

Signed-off-by: default avatarMark Charlebois <charlebm@gmail.com>
parent edf8677c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment