Fix crash on uninitialized /var/lib/flatpak/repo as non-root

Closes: #1684
Approved by: alexlarsson
This commit is contained in:
Alexander Larsson
2018-05-17 13:37:01 +02:00
committed by Atomic Bot
parent 421b1a953c
commit 18d146c765

View File

@@ -6752,6 +6752,9 @@ flatpak_dir_check_add_remotes_config_dir (FlatpakDir *self,
if (!flatpak_dir_maybe_ensure_repo (self, NULL, error))
return FALSE;
if (self->repo == NULL)
return TRUE;
config = ostree_repo_get_config (self->repo);
if (config == NULL)