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

This commit is contained in:
Carlos Martín Nieto 2012-09-04 21:42:00 +02:00
parent 064ee42d99
commit f9988d4e4c

View File

@ -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;
}