]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fsck: s/++i > 1/i++/
authorJunio C Hamano <gitster@pobox.com>
Wed, 24 Oct 2018 01:25:12 +0000 (10:25 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Oct 2018 01:25:12 +0000 (10:25 +0900)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c

diff --git a/fsck.c b/fsck.c
index 0f56977d6aa6499c06e31eddb8ed4afe484fcdc4..d44c46c5275b137880b0d02da51024553feefe1b 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -485,7 +485,7 @@ static int fsck_walk_commit(struct commit *commit, void *data, struct fsck_optio
                if (name) {
                        struct object *obj = &parents->item->object;
 
-                       if (++counter > 1)
+                       if (counter++)
                                put_object_name(options, obj, "%s^%d",
                                        name, counter);
                        else if (generation > 0)