Commit f9988d4e4cc9818b0f338d6f6101241eb6da526b

Carlos Martín Nieto 2012-09-04T21:42:00

odb: pass the user's data pointer correctly in foreach

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 8fc6e68..6e3d3ee 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -435,7 +435,7 @@ static int pack_backend__foreach(git_odb_backend *_backend, int (*cb)(git_oid *o
 		return error;
 
 	git_vector_foreach(&backend->packs, i, p) {
-		if ((error = git_pack_foreach_entry(p, cb, &data)) < 0)
+		if ((error = git_pack_foreach_entry(p, cb, data)) < 0)
 			return error;
 	}