Re: [RFC] Re: Convert 'git blame' to parse_options()
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jun 23, 2008, 23:40 UTC
- Message-ID
- <alpine.LFD.1.10.0806231638190.2926@woody.linux-foundation.org>
- In-Reply-To
- <20080623233146.GP13395@artemis.madism.org>
On Tue, 24 Jun 2008, Pierre Habouzit wrote:
> > Are we sure argv[argc] is NULL when those are main() arguments ?
Yes. There's tons of code that ends up not caring about argc at all, so any system that doesn't NULL-terminate would break.
In fact, git itself already depends on it, because it turns argv directly into the pathspec name pattern array.
Linus