Don't crash when installing bundles that have no embedded URIs

Closes: #1268
Approved by: alexlarsson
This commit is contained in:
Alexander Larsson
2017-12-20 16:59:42 +01:00
committed by Atomic Bot
parent 89243b1d9c
commit 006a5f2ade

View File

@@ -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 */