From b96d1c9f4ed055006d58b2c120ed910ee864482f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 5 Oct 2014 13:20:18 +0200 Subject: [PATCH] bin/xbps-rindex/sign.c: CID 62699 (dereference NULL return value) --- bin/xbps-rindex/sign.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/xbps-rindex/sign.c b/bin/xbps-rindex/sign.c index b8fbecf8..f2a154e1 100644 --- a/bin/xbps-rindex/sign.c +++ b/bin/xbps-rindex/sign.c @@ -177,6 +177,8 @@ sign_repo(struct xbps_handle *xhp, const char *repodir, * packages in this repository. */ iter = xbps_dictionary_iterator(repo->idx); + assert(iter); + while ((obj = xbps_object_iterator_next(iter))) { pkgd = xbps_dictionary_get_keysym(repo->idx, obj); xbps_dictionary_get_cstring_nocopy(pkgd, "architecture", &arch);