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

Re: [PATCH] cmd_config(): Make a copy of path obtained from git_path()

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 17, 2014, 17:25 UTC
Message-ID
<xmqqtx1xyc24.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1416123464-22874-1-git-send-email-mhagger@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
> The strings returned by git_path() are recycled after a while. So make
> a copy of the config filename rather than holding onto the return
> value from git_path().
Good thinking.  I agree that is an accident waiting to happen.
Previous: Michael Haggerty
Message 2 of 2 in “cmd_config(): Make a copy of path obtained from git_path()”
  1. cmd_config(): Make a copy of path obtained from git_path()Michael Haggerty, Nov 16, 2014
  2. Junio C HamanoNov 17, 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.