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 0f56977..d44c46c 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)