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

Re: What's in git.git

From
Junio C Hamano <junkio@cox.net>
Date
Jun 27, 2006, 05:54 UTC
Message-ID
<7vpsgvf8jf.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0606251033030.3747@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> I suspect that both could have been made to use NULL instead to indicate 
> that no pointer exists.

As long as none of the following does not dereference the NULL pointer that should work fine:

	- memchr(NULL, ch, 0);
        - memcmp(NULL, ptr, 0);
        - stream.next_in = NULL;
          stream.avail_in = 0;
          deflate(&stream, Z_FINISH);
Previous: Linus TorvaldsNext: Linus Torvalds
Message 5 of 8 in “What's in git.git”
  1. Junio C HamanoJun 25, 2006
  2. Linus TorvaldsJun 25, 2006
  3. Timo HirvonenJun 25, 2006
  4. Linus TorvaldsJun 25, 2006
  5. Junio C HamanoJun 27, 2006
  6. Linus TorvaldsJun 27, 2006
  7. Johannes SchindelinJun 27, 2006
  8. Martin LanghoffJun 26, 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.