Skip to content
Snippets Groups Projects
Commit d1a2f522 authored by Matthias Grob's avatar Matthias Grob Committed by Lorenz Meier
Browse files

fix segmentation fault when running local_position_estimator module without arguments

argv[1] was read even if argc < 2 -> segmentation fault when running without arguments
the return saves this
parent c9892712
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ int local_position_estimator_main(int argc, char *argv[])
if (argc < 2) {
usage("missing command");
return 1;
}
if (!strcmp(argv[1], "start")) {
......
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