diff --git a/mailinfo.c b/mailinfo.c
index 3fa9505313cd509e81bba1de056681b8332b4bdc..99989c25b28a70043b866ab21cf6d88c45bc68ed 100644 (file)
--- a/mailinfo.c
+++ b/mailinfo.c
{
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();
}