mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-21 16:33:45 -04:00
Don't crash when installing bundles that have no embedded URIs
Closes: #1268 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
89243b1d9c
commit
006a5f2ade
@@ -8734,9 +8734,13 @@ origin_remote_matches (OstreeRepo *repo,
|
||||
gboolean real_gpg_verify;
|
||||
|
||||
/* Must match url */
|
||||
if (url == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (!ostree_repo_remote_get_url (repo, remote_name, &real_url, NULL))
|
||||
return FALSE;
|
||||
if (strcmp (url, real_url) != 0)
|
||||
|
||||
if (g_strcmp0 (url, real_url) != 0)
|
||||
return FALSE;
|
||||
|
||||
/* Must be noenumerate */
|
||||
|
||||
Reference in New Issue
Block a user