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.
This commit is contained in:
Kalev Lember
2024-05-30 10:26:07 +02:00
committed by Simon McVittie
parent 07f55b32a5
commit 4bf4f32c16

View File

@@ -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);