projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
In handle_body only read a line if we don't already have one.
[git.git]
/
mailinfo.c
diff --git
a/mailinfo.c
b/mailinfo.c
index
3fa9505
..
99989c2
100644
(file)
--- a/
mailinfo.c
+++ b/
mailinfo.c
@@
-724,7
+724,7
@@
static void handle_body(void)
{
int seen = 0;
- if (fgets(line, sizeof(line), stdin) != NULL) {
+ if (
line[0] ||
fgets(line, sizeof(line), stdin) != NULL) {
handle_commit_msg(&seen);
handle_patch();
}