summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2011-10-08 01:18:28 +0000
committerJason Woodward2011-10-08 01:18:28 +0000
commita0a2379c9cad345950f5489d46fe2aef640f4de0 (patch)
tree8bd99c93654f599b60e3fbf8432955b3b155ab5c
parent502e669a981e95da75033973890def0b51314e38 (diff)
downloadslapt-get-a0a2379c9cad345950f5489d46fe2aef640f4de0.tar.gz
fix logic inversion checking for null package
-rw-r--r--src/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index 9bd7529..0748488 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1827,7 +1827,7 @@ static void required_by(slapt_pkg_list_t *avail,
satisfies = slapt_parse_delimited_list(dep_list->items[d],'|');
for (s = 0; s < satisfies->count; s++) {
slapt_pkg_info_t *tmp_pkg = parse_meta_entry(avail,installed_pkgs,satisfies->items[s]);
- if (tmp_pkg != NULL)
+ if (tmp_pkg == NULL)
continue;
if (strcmp(tmp_pkg->name,pkg->name) == 0) {