]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-atom.c
ui-shared: currenturl should take into account leading slash
[ps-cgit] / ui-atom.c
index 838f220ae301700ff50e61e1bcbfee5f3f0e7bce..e2b39ee1d1c51cb109e69dc65b26feefe866d76d 100644 (file)
--- a/ui-atom.c
+++ b/ui-atom.c
@@ -108,7 +108,7 @@ void cgit_print_atom(char *tip, char *path, int max_count)
        host = cgit_hosturl();
        ctx.page.mimetype = "text/xml";
        ctx.page.charset = "utf-8";
        host = cgit_hosturl();
        ctx.page.mimetype = "text/xml";
        ctx.page.charset = "utf-8";
-       cgit_print_http_headers(&ctx);
+       cgit_print_http_headers();
        html("<feed xmlns='http://www.w3.org/2005/Atom'>\n");
        html("<title>");
        html_txt(ctx.repo->name);
        html("<feed xmlns='http://www.w3.org/2005/Atom'>\n");
        html("<title>");
        html_txt(ctx.repo->name);
@@ -133,8 +133,7 @@ void cgit_print_atom(char *tip, char *path, int max_count)
        }
        while ((commit = get_revision(&rev)) != NULL) {
                add_entry(commit, host);
        }
        while ((commit = get_revision(&rev)) != NULL) {
                add_entry(commit, host);
-               free(commit->buffer);
-               commit->buffer = NULL;
+               free_commit_buffer(commit);
                free_commit_list(commit->parents);
                commit->parents = NULL;
        }
                free_commit_list(commit->parents);
                commit->parents = NULL;
        }