rpool: make xbps_handle::repo_pool array immutable after initialization.

This commit is contained in:
Juan RP 2012-04-13 10:06:08 +02:00
parent 8b2c4ed47e
commit 934bc4869e

View File

@ -124,7 +124,6 @@ xbps_repository_pool_init(struct xbps_handle *xhp)
prop_object_release(d);
goto out;
}
prop_array_make_immutable(array);
if (!xbps_add_obj_to_dict(d, array, "index")) {
rv = EINVAL;
prop_object_release(d);
@ -143,6 +142,7 @@ xbps_repository_pool_init(struct xbps_handle *xhp)
goto out;
}
prop_array_make_immutable(xhp->repo_pool);
xbps_dbg_printf("[rpool] initialized ok.\n");
out:
if (rv != 0)