mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 07:23:34 +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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user