From: Junio C Hamano Date: Tue, 27 Jun 2006 05:54:12 GMT Subject: Re: What's in git.git Message-ID: <7vpsgvf8jf.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds 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);