mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
utils: Don't pass NULL remote to ostree_repo_get_remote_option
Fixes: #4662 (cherry picked from commit dd2a04f978596e1cadb2d862530ba4fe9acf0530)
This commit is contained in:
parent
c3c611ce19
commit
228dfab479
@ -3857,8 +3857,8 @@ flatpak_pull_from_bundle (OstreeRepo *repo,
|
||||
if (metadata_contents != NULL)
|
||||
metadata_size = strlen (metadata_contents);
|
||||
|
||||
if (!ostree_repo_get_remote_option (repo, remote, "collection-id", NULL,
|
||||
&remote_collection_id, NULL))
|
||||
if (!remote || !ostree_repo_get_remote_option (repo, remote, "collection-id", NULL,
|
||||
&remote_collection_id, NULL))
|
||||
remote_collection_id = NULL;
|
||||
|
||||
if (remote_collection_id != NULL && collection_id != NULL &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user