diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 79bc147b..2f3a245a 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -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 */