From 42831b97d4ccf8a8a2b4be3f286555aa296ecea8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 28 May 2015 09:41:00 +0200 Subject: [PATCH] xbps-pkgdb: add two assertions. --- bin/xbps-pkgdb/check.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/xbps-pkgdb/check.c b/bin/xbps-pkgdb/check.c index 5825d241..ccda3b13 100644 --- a/bin/xbps-pkgdb/check.c +++ b/bin/xbps-pkgdb/check.c @@ -94,7 +94,9 @@ check_pkg_integrity(struct xbps_handle *xhp, if (xbps_dictionary_get_cstring_nocopy(opkgd, "metafile-sha256", &sha256)) { buf = xbps_xasprintf("%s/.%s-files.plist", xhp->metadir, pkgname); + assert(buf); filesd = xbps_dictionary_internalize_from_zfile(buf); + assert(filesd); rv = xbps_file_hash_check(buf, sha256); free(buf); if (rv == ENOENT) {