summaryrefslogtreecommitdiffstats
path: root/expac.c
diff options
context:
space:
mode:
Diffstat (limited to 'expac.c')
-rw-r--r--expac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/expac.c b/expac.c
index 2c652e9..0c6250e 100644
--- a/expac.c
+++ b/expac.c
@@ -707,8 +707,8 @@ static alpm_list_t *resolve_pkg(alpm_list_t *targets) {
continue;
}
- if (!(pkg = alpm_db_get_pkg(repo, pkgname)) &&
- !(pkg = alpm_db_get_pkg(repo, pkgname))) {
+ pkg = alpm_db_get_pkg(repo, pkgname);
+ if (pkg == NULL) {
continue;
}