From 0c0e58e06c3f63302fd68552b9a15f35df0bdbb2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 30 Mar 2021 20:00:13 +0000 Subject: [PATCH] repo: Fix load_variant_if_exists to return a nullable value Another introspection fix I hit when trying to use this in Rust. --- src/libostree/ostree-repo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,