diff options
author | René Scharfe <l.s.r@web.de> | 2019-08-25 15:26:40 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-26 11:32:28 -0700 |
commit | fd99c2dd9b0b24fe4bb36366a6b1ff9e29b29286 (patch) | |
tree | 7df8117550b21aa78a1abcf7daf89625ebe782e9 /transport.c | |
parent | log-tree: always use return value of strbuf_detach() (diff) | |
download | tgif-fd99c2dd9b0b24fe4bb36366a6b1ff9e29b29286.tar.xz |
grep: use return value of strbuf_detach()
Append the strbuf buffer only after detaching it. There is no practical
difference here, as the strbuf is not empty and no strbuf_ function is
called between storing the pointer to the still attached buffer and
calling strbuf_detach(), so that pointer is valid, but make sure to
follow the standard sequence anyway for consistency.
Signed-off-by: René Scharfe <l.s.r@web.de>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
0 files changed, 0 insertions, 0 deletions