git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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>
Previous: René Scharfe
Message 2 of 2 in “transport: simplify duplicating a substring in transport_get() using xmemdupz()”
  1. transport: simplify duplicating a substring in transport_get() using xmemdupz()René Scharfe, Dec 24, 2014
  2. Jonathan NiederDec 24, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.