From 40ea6cd607d5edb2699c084259b237d435313670 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 8 Aug 2011 23:57:19 -0500 Subject: Depend on name_hash being set This is a fairly valid assumption at this point, or at least as good of one as assuming packages all have names. Signed-off-by: Dan McGee --- lib/libalpm/deps.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libalpm/deps.c') diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index c3681b34..aef66d2d 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -373,8 +373,7 @@ int _alpm_depcmp(alpm_pkg_t *pkg, alpm_depend_t *dep) int satisfy = 0; /* check (pkg->name, pkg->version) */ - if(pkg->name_hash && dep->name_hash - && pkg->name_hash != dep->name_hash) { + if(pkg->name_hash != dep->name_hash) { /* skip more expensive checks */ } else { satisfy = (strcmp(pkg->name, dep->name) == 0 -- cgit v1.2.3-24-g4f1b