summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index 35a171105a..f48d7f788a 100644
--- a/revision.c
+++ b/revision.c
@@ -1247,7 +1247,7 @@ static void gc_boundary(struct object_array *array)
objects[j] = objects[i];
j++;
}
- for (i = j; j < nr; j++)
+ for (i = j; i < nr; i++)
objects[i].item = NULL;
array->nr = j;
}