Re: [PATCH] transport: simplify duplicating a substring in transport_get() using xmemdupz()
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 24, 2014, 02:08 UTC
- Message-ID
- <20141224020847.GC29365@google.com>
- In-Reply-To
- <549A0657.6010509@web.de>
René Scharfe wrote:
> Signed-off-by: Rene Scharfe <l.s.r@web.de> > --- > 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 <jrnieder@gmail.com>