summaryrefslogtreecommitdiff
path: root/src/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pack.c')
-rw-r--r--src/pack.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c
index 3f2adb2f3..fd53ef49a 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -1088,8 +1088,10 @@ int git_pack_foreach_entry(
}
for (i = 0; i < p->num_objects; i++)
- if ((error = GITERR_CALLBACK( cb(p->oids[i], data) )) != 0)
+ if ((error = cb(p->oids[i], data)) != 0) {
+ GITERR_CALLBACK(error);
break;
+ }
return error;
}