This commit is contained in:
Vladimir Kozlov 2017-07-05 20:16:26 -07:00
commit 0be0ab5955
142 changed files with 787 additions and 526 deletions

View file

@ -149,8 +149,8 @@ static bool match_option(const JavaVMOption *option, const char* name) {
static bool match_option(const JavaVMOption* option, const char** names, const char** tail,
bool tail_allowed) {
for (/* empty */; *names != NULL; ++names) {
if (match_option(option, *names, tail)) {
if (**tail == '\0' || tail_allowed && **tail == ':') {
if (match_option(option, *names, tail)) {
if (**tail == '\0' || (tail_allowed && **tail == ':')) {
return true;
}
}