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

Re: [PATCH] shortlog: fix segfault on empty authorname

From
Jeff King <peff@peff.net>
Date
Dec 10, 2006, 03:45 UTC
Message-ID
<20061210034524.GA11819@coredump.intra.peff.net>
In-Reply-To
<Pine.LNX.4.63.0612100019270.28348@wbgn013.biozentrum.uni-wuerzburg.de>
On Sun, Dec 10, 2006 at 12:21:03AM +0100, Johannes Schindelin wrote:
Show 11 quoted lines
> > Instead, remove at most one space between name and address.
> 
> Why? We can fix it properly: Instead of
> 
> > -				while (isspace(bob[-1]))
> > +				if (isspace(bob[-1]))
> 
> do something like
> 
> 				while (bob - 1 != buffer + 7 && 
> 						isspace(bob[-1]))
It doesn't look like there are ever extra spaces to get soaked up in the
kernel or git repositories, but if there is a reason to expect
  Full Name    <user@domain>
then we should probably replace my fix with yours.
Previous: Johannes SchindelinNext: Junio C Hamano
Message 5 of 8 in “builtin git-shortlog still broken”
  1. Nicolas PitreDec 9, 2006
  2. shortlog: fix segfault on empty authornameJeff King, Dec 9, 2006
  3. Nicolas PitreDec 9, 2006
  4. Johannes SchindelinDec 9, 2006
  5. Jeff KingDec 10, 2006
  6. Junio C HamanoDec 10, 2006
  7. Johannes SchindelinDec 10, 2006
  8. Johannes SchindelinDec 9, 2006

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.