Fix two asserts.

This commit is contained in:
Juan RP 2011-01-27 20:47:34 +01:00
parent 8a7bfe6cda
commit 1cc45ee20f
2 changed files with 2 additions and 2 deletions

View File

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

View File

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