diff options
author | Colin Walters <walters@verbum.org> | 2015-06-01 18:40:04 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-06-02 09:07:28 -0400 |
commit | acf1caa12f9e35f3bcac2fd80b97e8e647de26df (patch) | |
tree | 5fbd5a220f2e8d67a520b64d83b6fc75434e670a /src | |
parent | 9acb6283d1d0b358ed406ec368b075a517d8857a (diff) | |
download | ostree-acf1caa12f9e35f3bcac2fd80b97e8e647de26df.tar.gz |
repo: Don't crash when creating a summary if we have --empty deltas
Diffstat (limited to 'src')
-rw-r--r-- | src/libostree/ostree-repo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index b141049e..6a20336a 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -4030,8 +4030,7 @@ ostree_repo_regenerate_summary (OstreeRepo *self, g_autoptr(GInputStream) in_stream = NULL; _ostree_parse_delta_name (delta_names->pdata[i], &from, &to); - superblock = _ostree_get_relative_static_delta_superblock_path (from[0] ? from : NULL, - to); + superblock = _ostree_get_relative_static_delta_superblock_path ((from && from[0]) ? from : NULL, to); superblock_file_fd = openat (self->repo_dir_fd, superblock, O_RDONLY | O_CLOEXEC); if (superblock_file_fd == -1) { |