X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/5f12e45fe3338095916a444ff106dd9fc9991d84..89082346d50ec283a16d3127677f30b427781b6a:/ui-plain.c diff --git a/ui-plain.c b/ui-plain.c index a4ce077..98e6908 100644 --- a/ui-plain.c +++ b/ui-plain.c @@ -10,7 +10,6 @@ #include "html.h" #include "ui-shared.h" -char *curr_rev; char *match_path; int match; @@ -77,7 +76,6 @@ void cgit_print_plain(struct cgit_context *ctx) if (!rev) rev = ctx->qry.head; - curr_rev = xstrdup(rev); if (get_sha1(rev, sha1)) { html_status(404, "Not found", 0); return; @@ -88,7 +86,7 @@ void cgit_print_plain(struct cgit_context *ctx) return; } match_path = ctx->qry.path; - read_tree_recursive(commit->tree, NULL, 0, 0, paths, walk_tree, NULL); + read_tree_recursive(commit->tree, "", 0, 0, paths, walk_tree, NULL); if (!match) html_status(404, "Not found", 0); }