Commit 38d338b2b85f280fe54057375fc3ccd6d2877e26

Carlos Martín Nieto 2014-04-26T18:15:39

pack-objects: always write out the status in write_one() Make sure we set the output parameter to a value.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/pack-objects.c b/src/pack-objects.c
index 7e5f667..ace8afd 100644
--- a/src/pack-objects.c
+++ b/src/pack-objects.c
@@ -406,6 +406,7 @@ static int write_one(
 			po->delta = NULL;
 	}
 
+	*status = WRITE_ONE_WRITTEN;
 	po->written = 1;
 	po->recursing = 0;