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);