From 49397104f2317c91ac54a250cd8c65cacfc0bb9e Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 25 Jun 2005 15:24:30 -0700 Subject: [PATCH] git-pack-objects: fix typo ("<" should be "=") --- pack-objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack-objects.c b/pack-objects.c index 322c4bc3e..9a468bd9f 100644 --- a/pack-objects.c +++ b/pack-objects.c @@ -172,7 +172,7 @@ static void write_index_file(void) * Write the actual SHA1 entries.. */ list = sorted_by_sha; - for (i < 0; i < nr_objects; i++) { + for (i = 0; i < nr_objects; i++) { struct object_entry *entry = *list++; unsigned int offset = htonl(entry->offset); fwrite(&offset, 4, 1, f); -- 2.26.2