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

Re: [PATCH] config: Print the delimeter of intuited --bool values under --get-regexp

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 27, 2010, 03:17 UTC
Message-ID
<20100827031757.GD23924@burratino>
In-Reply-To
<1282855775-22582-1-git-send-email-alex@chmrr.net>
Alex Vandiver wrote:
Show 6 quoted lines
> @@ -132,14 +129,21 @@ static int show_config(const char *key_, const char *value_, void *cb)
>  		must_free_vptr = 1;
>  	}
>  	else
> -		vptr = value_?value_:"";
> +		vptr = value_;
[...]
>  	if (dup_error) {
>  		error("More than one value for the key %s: %s",
>  				key_, vptr);
Could this segfault?
Previous: alex@chmrr.netNext: Jonathan Nieder
Message 3 of 4 in “Test the interaction of --bool and --get-regexp on a key with no explicit value”
  1. Test the interaction of --bool and --get-regexp on a key with no explicit valueAlex Vandiver, Aug 26, 2010
  2. config: Print the delimeter of intuited --bool values under --get-regexpalex@chmrr.net, Aug 26, 2010
  3. Jonathan NiederAug 27, 2010
  4. Jonathan NiederAug 27, 2010

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.