px4_getopt: astyle

This commit is contained in:
Julian Oes
2016-06-20 09:37:43 +02:00
parent 97f6ad4e53
commit 146c8ddbc3
+2
View File
@@ -168,9 +168,11 @@ __EXPORT int px4_getopt(int argc, char *argv[], const char *options, int *myopti
if (takesarg) {
*myoptarg = argv[*myoptind];
if (!*myoptarg) { //Error: option takes an argument, but there is no more argument
return -1;
}
*myoptind += 1;
}