From f9988d4e4cc9818b0f338d6f6101241eb6da526b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Tue, 4 Sep 2012 21:42:00 +0200 Subject: [PATCH] odb: pass the user's data pointer correctly in foreach --- src/odb_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odb_pack.c b/src/odb_pack.c index 8fc6e68e8..6e3d3eefd 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; }