summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index 101426f6e..b7657e432 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -1388,8 +1388,10 @@ int git_diff__paired_foreach(
i++; j++;
}
- if ((error = GITERR_CALLBACK( cb(h2i, i2w, payload) )) != 0)
+ if ((error = cb(h2i, i2w, payload)) != 0) {
+ GITERR_CALLBACK(error);
break;
+ }
}
/* restore case-insensitive delta sort */