odb: pass the user's data pointer correctly in foreach
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;
}