Fix two asserts.
This commit is contained in:
parent
8a7bfe6cda
commit
1cc45ee20f
@ -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)
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user