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

@ -59,6 +59,8 @@ set_pkg_state(prop_dictionary_t pkgd, const char *pkgname)
pkg_state_t state = 0;
int rv = 0;
assert(pkgd != NULL);
rv = xbps_set_pkg_state_dictionary(pkgd, XBPS_PKG_STATE_NOT_INSTALLED);
if (rv != 0)
return rv;