mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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:
parent
edf8677c37
commit
639afeb28f
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user