Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff-delta: use realloc instead of xrealloc
[gitweb.git]
/
builtin-mailsplit.c
diff --git
a/builtin-mailsplit.c
b/builtin-mailsplit.c
index 97ae004ab7939f565733e463a2b53afd63eff9df..c9384255551f316f2416ce49372b820a6d8e3632 100644
(file)
--- a/
builtin-mailsplit.c
+++ b/
builtin-mailsplit.c
@@
-261,7
+261,8
@@
int cmd_mailsplit(int argc, const char **argv, const char *prefix)
error("cannot split patches from stdin");
return 1;
}
- num += ret;
+ num += (ret - nr);
+ nr = ret;
continue;
}
@@
-279,7
+280,8
@@
int cmd_mailsplit(int argc, const char **argv, const char *prefix)
error("cannot split patches from %s", arg);
return 1;
}
- num += ret;
+ num += (ret - nr);
+ nr = ret;
}
printf("%d\n", num);