]> git.ipfire.org Git - thirdparty/git.git/commit - mailinfo.c
mailinfo: recycle strbuf in check_header()
authorRené Scharfe <l.s.r@web.de>
Sat, 13 Aug 2016 09:05:42 +0000 (11:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Aug 2016 02:45:24 +0000 (19:45 -0700)
commitecf30b237cb278040f18c597c1dbdbc49793094d
tree9b64ad559e899fd13d933b6e1856e38e8cccc863
parent6ac617a321383b2e3a0f0537e3224ec6229e6500
mailinfo: recycle strbuf in check_header()

handle_message_id() duplicates the contents of the strbuf that is passed
to it.  Its only caller proceeds to release the strbuf immediately after
that.  Reuse it instead and make that change of object ownership more
obvious by inlining this short function.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mailinfo.c