Fix some issues while matching for required pkgdeps.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091107154159-riikhswt1h3mm9xn
This commit is contained in:
Juan RP
2009-11-07 16:41:59 +01:00
parent 79d3f446fe
commit 795c2a58f5
3 changed files with 18 additions and 5 deletions

View File

@@ -113,6 +113,8 @@ xbps_pkgdep_match(const char *instpkg, char *pattern)
char basefname[PATH_MAX], condchar = '\0', *condition;
int rv = 0;
memset(&basefname, 0, sizeof(basefname));
condition = strpbrk(pattern, "><=");
if (condition) {
const char *ch;