Diff options
-rw-r--r--source/ui-diff.c2
1 file changed, 0 insertions, 2 deletions
diff --git a/source/ui-diff.c b/source/ui-diff.c
index 33a715d..0c6c288 100644
--- a/source/ui-diff.c
+++ b/source/ui-diff.c
@@ -445,7 +445,6 @@ static void print_diffstat(const struct object_id *old_oid, const struct object_
html("')");
}
html("</div>\n");
- max_changes = 0;
cgit_diff_tree(old_oid, new_oid, inspect_filepair, prefix, ctx.qry.ignorews);
// A change to no files would leave the table an empty frame.
if (files) {
@@ -719,7 +718,6 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, const char *prefi
html_raw(items[i].body.buf, items[i].body.len);
release_bodies();
} else {
- item_idx = 0;
cgit_diff_tree(old_rev_oid, new_rev_oid, filepair_cb, prefix, ctx.qry.ignorews);
}
if (!use_ssdiff)