From: Colin Walters Date: Tue, 30 Mar 2021 20:00:13 +0000 (+0000) Subject: repo: Fix load_variant_if_exists to return a nullable value X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~4^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c0e58e06c3f63302fd68552b9a15f35df0bdbb2;p=ostree.git repo: Fix load_variant_if_exists to return a nullable value Another introspection fix I hit when trying to use this in Rust. --- diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 0c045c41..40841c7b 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -4452,12 +4452,13 @@ ostree_repo_query_object_storage_size (OstreeRepo *self, * @self: Repo * @objtype: Object type * @sha256: ASCII checksum - * @out_variant: (out) (transfer full): Metadata + * @out_variant: (out) (nullable) (transfer full): Metadata * @error: Error * * Attempt to load the metadata object @sha256 of type @objtype if it * exists, storing the result in @out_variant. If it doesn't exist, - * %NULL is returned. + * @out_variant will be set to %NULL and the function will still + * return TRUE. */ gboolean ostree_repo_load_variant_if_exists (OstreeRepo *self,