diff --git a/src/libostree/ostree-repo-refs.c b/src/libostree/ostree-repo-refs.c index 04c99a03..f8af3c43 100644 --- a/src/libostree/ostree-repo-refs.c +++ b/src/libostree/ostree-repo-refs.c @@ -1215,10 +1215,10 @@ ostree_repo_list_collection_refs (OstreeRepo *self, continue; } - if (match_collection_id != NULL && g_strcmp0 (match_collection_id, current_collection_id) != 0) + if (match_collection_id != NULL && g_strcmp0 (match_collection_id, remote_collection_id) != 0) continue; else - current_collection_id = remote_collection_id; + current_collection_id = remote_collection_id; } if (!glnx_opendirat (dfd_iter.fd, dent->d_name, TRUE, &subdir_fd, error))