Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
groups: fix regression
Baptiste Daroussin committed 2 years ago
commit ca5dcfbb93ce7fec7dddef382fe74c1c1e46b41f
parent 5905db5
1 file changed +1 -1
modified libpkg/pkgdb_query.c
@@ -393,7 +393,7 @@ pkgdb_repo_query_cond(struct pkgdb *db, const char *cond, const char *pattern, m

	tll_foreach(db->repos, cur) {
		if (repo == NULL || strcasecmp(cur->item->name, repo) == 0) {
-
			if (*pattern == '@')
+
			if (pattern != NULL && *pattern == '@')
				rit = cur->item->ops->groupquery(cur->item, pattern + 1, match);
			else
				rit = cur->item->ops->query(cur->item, cond, pattern, match);