summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-09-04 21:42:00 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-09-04 21:42:00 +0200
commitf9988d4e4cc9818b0f338d6f6101241eb6da526b (patch)
treef0d53c9f139631aed11cf8750f31ba0b078a5513
parent064ee42d99f1c457fcf728df728c0fb7ea65bc07 (diff)
downloadlibgit2-f9988d4e4cc9818b0f338d6f6101241eb6da526b.tar.gz
odb: pass the user's data pointer correctly in foreach
-rw-r--r--src/odb_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 8fc6e68e..6e3d3eef 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;
}