]> git.ipfire.org Git - thirdparty/git.git/commit - http-walker.c
http-walker: simplify process_alternates_response() using strbuf
authorRené Scharfe <l.s.r@web.de>
Sat, 30 Aug 2014 15:55:45 +0000 (17:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Sep 2014 17:57:14 +0000 (10:57 -0700)
commit59b8263a6dc3946b62101a9cc9c603a5486cee09
treed80345fa5b449a6322574fde6731dda2fd0d0b32
parent96db324a73fdada6fbe7b63221986f8f18cc63b0
http-walker: simplify process_alternates_response() using strbuf

Use strbuf to build the new base, which takes care of allocations and
the terminating NUL character automatically.

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