sdlog2: fix segfault when starting without args

`sdlog2 start` lead to a segfault.
This commit is contained in:
Julian Oes
2016-03-29 22:43:20 +02:00
committed by Lorenz Meier
parent 4179ed6c19
commit 3464648533
-3
View File
@@ -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,