From: Jonathan Nieder Date: Wed, 24 Dec 2014 02:08:47 GMT Subject: Re: [PATCH] transport: simplify duplicating a substring in transport_get() using xmemdupz() Message-ID: <20141224020847.GC29365@google.com> In-Reply-To: <549A0657.6010509@web.de> René Scharfe wrote: > Signed-off-by: Rene Scharfe > --- > transport.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Since external_specification_len(url) is defined to always be less than strlen(url) when is_url(url), this should be safe. Reviewed-by: Jonathan Nieder