log-tree: always use return value of strbuf_detach()
commit82f51af3452bb80e2347bb45dba3e1d2f10d0be7
authorRené Scharfe <l.s.r@web.de>
Sun, 25 Aug 2019 12:53:26 +0000 (25 14:53 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Aug 2019 18:29:43 +0000 (26 11:29 -0700)
tree4147ae94c32d546e726a6b906b3f21bcc451b45f
parent745f6812895b31c02b29bdfe4ae8e5498f776c26
log-tree: always use return value of strbuf_detach()

strbuf_detach() has been returning a pointer to a buffer even for empty
strbufs since 08ad56f3f0 ("strbuf: always return a non-NULL value from
strbuf_detach", 2012-10-18).  Use that feature in show_log() instead of
having it handle empty strbufs specially.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c