Process character after operator

Kai Pastor 2024-07-03 04:58:06 +02:00 committed by Ariadne Conill
parent 64ff8b031f
commit 8b7e2c4eee
1 changed files with 7 additions and 6 deletions

View File

@ -386,15 +386,16 @@ pkgconf_dependency_parse_str(pkgconf_client_t *client, pkgconf_list_t *deplist_h
break; break;
case INSIDE_OPERATOR: case INSIDE_OPERATOR:
if (!PKGCONF_IS_OPERATOR_CHAR(*ptr)) if (PKGCONF_IS_OPERATOR_CHAR(*ptr))
{ {
state = AFTER_OPERATOR; if (cnameptr < cnameend)
compare = pkgconf_pkg_comparator_lookup_by_name(cmpname); *cnameptr++ = *ptr;
break;
} }
else if (cnameptr < cnameend)
*cnameptr++ = *ptr;
break; state = AFTER_OPERATOR;
compare = pkgconf_pkg_comparator_lookup_by_name(cmpname);
// fallthrough
case AFTER_OPERATOR: case AFTER_OPERATOR:
if (!isspace((unsigned char)*ptr)) if (!isspace((unsigned char)*ptr))