Merge "SWDEV-1 - Fix getopt for options that don't have colon" into amd-staging

This commit is contained in:
Jason Tang
2021-11-23 16:36:34 -05:00
committed by Gerrit Code Review
+2 -1
View File
@@ -42,7 +42,8 @@ int getopt(int argc, char *const argv[], const char *optstring) {
return '?';
}
optarg = argv[optind];
optind++;
}
optind++;
return opt;
}