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) {