mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-26 10:54:59 -04:00
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:
committed by
Simon McVittie
parent
07f55b32a5
commit
4bf4f32c16
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user