xbps_entry_install_conf_file: add more assertions.

This commit is contained in:
Juan RP 2014-09-05 20:58:20 +02:00
parent 685a85a466
commit e2470f8697

View File

@ -73,9 +73,10 @@ xbps_entry_install_conf_file(struct xbps_handle *xhp,
int rv = 0; int rv = 0;
assert(xbps_object_type(filesd) == XBPS_TYPE_DICTIONARY); assert(xbps_object_type(filesd) == XBPS_TYPE_DICTIONARY);
assert(entry != NULL); assert(entry);
assert(entry_pname != NULL); assert(entry_pname);
assert(pkgver != NULL); assert(pkgver);
assert(pkgname);
iter = xbps_array_iter_from_dict(filesd, "conf_files"); iter = xbps_array_iter_from_dict(filesd, "conf_files");
if (iter == NULL) if (iter == NULL)