bin/xbps-rindex/sign.c: CID 62699 (dereference NULL return value)
This commit is contained in:
parent
be256ed77b
commit
b96d1c9f4e
@ -177,6 +177,8 @@ sign_repo(struct xbps_handle *xhp, const char *repodir,
|
|||||||
* packages in this repository.
|
* packages in this repository.
|
||||||
*/
|
*/
|
||||||
iter = xbps_dictionary_iterator(repo->idx);
|
iter = xbps_dictionary_iterator(repo->idx);
|
||||||
|
assert(iter);
|
||||||
|
|
||||||
while ((obj = xbps_object_iterator_next(iter))) {
|
while ((obj = xbps_object_iterator_next(iter))) {
|
||||||
pkgd = xbps_dictionary_get_keysym(repo->idx, obj);
|
pkgd = xbps_dictionary_get_keysym(repo->idx, obj);
|
||||||
xbps_dictionary_get_cstring_nocopy(pkgd, "architecture", &arch);
|
xbps_dictionary_get_cstring_nocopy(pkgd, "architecture", &arch);
|
||||||
|
Loading…
Reference in New Issue
Block a user