summaryrefslogtreecommitdiffstats
path: root/mailinfo.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-15 02:45:29 +0200
committerJunio C Hamano <gitster@pobox.com>2015-10-22 00:59:34 +0200
commit6ac617a321383b2e3a0f0537e3224ec6229e6500 (patch)
tree833365fb0c39db2191a234c89009e32e7b3d3b2d /mailinfo.h
parentmailinfo: handle charset conversion errors in the caller (diff)
downloadgit-6ac617a321383b2e3a0f0537e3224ec6229e6500.tar.xz
git-6ac617a321383b2e3a0f0537e3224ec6229e6500.zip
mailinfo: remove calls to exit() and die() deep in the callchain
The top-level mailinfo() would instead punt when the code in the deeper part of the callchain detects an unrecoverable error in the input. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailinfo.h')
-rw-r--r--mailinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mailinfo.h b/mailinfo.h
index 1e97b737f3..93776a7e05 100644
--- a/mailinfo.h
+++ b/mailinfo.h
@@ -31,6 +31,7 @@ struct mailinfo {
struct strbuf **s_hdr_data;
struct strbuf log_message;
+ int input_error;
};
extern void setup_mailinfo(struct mailinfo *);