summaryrefslogtreecommitdiff
path: root/pack-objects.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 15:24:30 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 15:24:30 -0700
commit49397104f2317c91ac54a250cd8c65cacfc0bb9e (patch)
treed537c83f8904e99c5ce8fbb3232b0b4fc53a28e2 /pack-objects.c
parentc323ac7d9c573c5ee8b45b9b9def92a4d4d8204d (diff)
downloadgit-49397104f2317c91ac54a250cd8c65cacfc0bb9e.tar.gz
git-pack-objects: fix typo
("<" should be "=")
Diffstat (limited to 'pack-objects.c')
-rw-r--r--pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-objects.c b/pack-objects.c
index 322c4bc3e9..9a468bd9fc 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);