mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 07:13:33 +08:00
sdlog2: fix segfault when starting without args
`sdlog2 start` lead to a segfault.
This commit is contained in:
@@ -936,9 +936,6 @@ int sdlog2_thread_main(int argc, char *argv[])
|
||||
|
||||
flag_system_armed = false;
|
||||
|
||||
/* work around some stupidity in task_create's argv handling */
|
||||
argc -= 2;
|
||||
argv += 2;
|
||||
int ch;
|
||||
|
||||
/* don't exit from getopt loop to leave getopt global variables in consistent state,
|
||||
|
||||
Reference in New Issue
Block a user