Diff options
Diffstat (limited to 'source/ui-atom.c')
-rw-r--r--source/ui-atom.c6
1 file changed, 1 insertion, 5 deletions
diff --git a/source/ui-atom.c b/source/ui-atom.c
index bf58e34..c9194f6 100644
--- a/source/ui-atom.c
+++ b/source/ui-atom.c
@@ -181,12 +181,8 @@ void cgit_print_atom(char *tip, const char *path, int max_count)
repo_init_revisions(the_repository, &rev, NULL);
rev.max_count = max_count;
setup_revisions(argc, argv, &rev, NULL);
- // A failed setup leaves the walk holding freed commits, so it must
- // not be read from.
- if (prepare_revision_walk(&rev)) {
- cgit_print_error_page(500, "Internal Server Error", "Unable to read the history");
+ if (cgit_prepare_walk(&rev))
return;
- }
// CGI guarantees a server name, so only a bare test run reaches the
// fallback, which keeps the mandatory feed id and links present.