aboutsummaryrefslogtreecommitdiff
path: root/pkt-line.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-08-19 20:42:04 +0200
committerJunio C Hamano <gitster@pobox.com>2008-08-19 18:08:00 -0700
commitc8c4450e1949055cb57e32425b125f45f3481742 (patch)
tree3168fbe0efe3bef657a594ad2dd743bc57f5e6e9 /pkt-line.c
parent26e08a0190cb3354e43bab13ea693a5c826a8fe1 (diff)
downloadgit-c8c4450e1949055cb57e32425b125f45f3481742.tar.gz
git-c8c4450e1949055cb57e32425b125f45f3481742.tar.xz
git format-patch: avoid underrun when format.headers is empty or all NLs
* builtin-log.c (add_header): Avoid a buffer underrun when format.headers is empty or all newlines. Reproduce with this: git config format.headers '' && git format-patch -1 Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pkt-line.c')
0 files changed, 0 insertions, 0 deletions