Sprinkle a couple of assert(3)ions.

This commit is contained in:
Juan RP
2011-01-25 04:14:33 +01:00
parent fd30feadcb
commit 008573e1eb
12 changed files with 46 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ xbps_remove_obsoletes(prop_dictionary_t oldd, prop_dictionary_t newd)
int rv = 0;
bool found, dodirs = false, dolinks = false;
assert(oldd != NULL);
assert(newd != NULL);
again:
iter = xbps_get_array_iter_from_dict(oldd, array_str);
if (iter == NULL)