From 4bf4f32c164f368202df494b96bbfc38fc0daa0e Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Thu, 30 May 2024 10:26:07 +0200 Subject: [PATCH] dir: Make sure all parse_ref_file out params are consistently cleared parse_ref_file() cleared all its out params to NULL, with the exception of collection_id_out. Make sure to clear this one as well to avoid surprises in the future. Fixes commit ae7d96037 that added collection ID support to flatpakref. --- common/flatpak-dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 483d4b3b..69597ad1 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -14468,6 +14468,7 @@ parse_ref_file (GKeyFile *keyfile, *url_out = NULL; *gpg_data_out = NULL; *is_runtime_out = FALSE; + *collection_id_out = NULL; if (!g_key_file_has_group (keyfile, FLATPAK_REF_GROUP)) return flatpak_fail_error (error, FLATPAK_ERROR_INVALID_DATA, _("Invalid file format, no %s group"), FLATPAK_REF_GROUP);