Re: [PATCH] test-stringlist: avoid buffer underrun when sorting nothing
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Oct 3, 2017, 22:59 UTC
- Message-ID
- <20171003225919.GF19555@aiede.mtv.corp.google.com>
- In-Reply-To
- <16d3a84c-b695-a55d-0263-885d0d34ae95@web.de>
René Scharfe wrote:
Show 7 quoted lines
> Check if the strbuf containing data to sort is empty before attempting > to trim a trailing newline character. > > Signed-off-by: Rene Scharfe <l.s.r@web.de> > --- > t/helper/test-string-list.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks for fixing it. Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>