Fix crash on two-word expressions
ci/woodpecker/push/woodpecker Pipeline was successful Details

master
Kai Pastor 2023-12-01 22:12:20 +01:00 committed by Ariadne Conill
parent b2f8386c32
commit 5825e2c6d6
1 changed files with 9 additions and 0 deletions

View File

@ -1405,6 +1405,15 @@ cleanup3:
pkgconf_queue_push(&pkgq, package);
pkg_optind++;
}
else if (argv[pkg_optind + 2] == NULL)
{
char packagebuf[PKGCONF_BUFSIZE];
snprintf(packagebuf, sizeof packagebuf, "%s %s", package, argv[pkg_optind + 1]);
pkg_optind += 2;
pkgconf_queue_push(&pkgq, packagebuf);
}
else
{
char packagebuf[PKGCONF_BUFSIZE];