Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Small simplification of the empty pattern case
Stefan Eßer committed 4 years ago
commit 6072e88ff5720908ade99a925f16611ba8f356aa
parent 1e4e1351a6ca11c88c75a79e2b0177f98edd783a
1 file changed +2 -0
modified libpkg/repo/binary/query.c
@@ -115,6 +115,8 @@ pkg_repo_binary_query(struct pkg_repo *repo, const char *cond, const char *patte
		return (NULL);

	comp = pkgdb_get_pattern_query(pattern, match);
+
	if (comp == NULL)
+
		comp = "";
	if (cond == NULL)
		xasprintf(&sql, basesql, repo->name, comp, "", "", "");
	else