From 1cc45ee20ff3ff6a65d386a712961ef7bcd4f647 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 27 Jan 2011 20:47:34 +0100 Subject: [PATCH] Fix two asserts. --- lib/plist.c | 2 +- lib/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plist.c b/lib/plist.c index 692e5c3c..54eb380b 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -336,7 +336,7 @@ find_string_in_array(prop_array_t array, const char *str, int mode) bool found = false; assert(array != NULL); - assert(pkgname != NULL); + assert(str != NULL); iter = prop_array_iterator(array); if (iter == NULL) diff --git a/lib/util.c b/lib/util.c index 7d0f469c..928c2f23 100644 --- a/lib/util.c +++ b/lib/util.c @@ -168,7 +168,7 @@ xbps_check_is_installed_pkg_by_pattern(const char *pattern) prop_dictionary_t dict; pkg_state_t state; - assert(pkg != NULL); + assert(pattern != NULL); dict = xbps_find_pkg_dict_installed(pattern, true); if (dict == NULL) {