From e2470f8697bab4220beed4a9f504c6fba0633dc3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 5 Sep 2014 20:58:20 +0200 Subject: [PATCH] xbps_entry_install_conf_file: add more assertions. --- lib/package_config_files.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/package_config_files.c b/lib/package_config_files.c index 0978fa3f..1b81931d 100644 --- a/lib/package_config_files.c +++ b/lib/package_config_files.c @@ -73,9 +73,10 @@ xbps_entry_install_conf_file(struct xbps_handle *xhp, int rv = 0; assert(xbps_object_type(filesd) == XBPS_TYPE_DICTIONARY); - assert(entry != NULL); - assert(entry_pname != NULL); - assert(pkgver != NULL); + assert(entry); + assert(entry_pname); + assert(pkgver); + assert(pkgname); iter = xbps_array_iter_from_dict(filesd, "conf_files"); if (iter == NULL)