Re: [PATCH] Optimize prefixcmp()
- From
- Marco Costalba <mcostalba@gmail.com>
- Date
- Dec 29, 2007, 20:39 UTC
- Message-ID
- <e5bfff550712291239y5648b923y8d332d9c40a8c97b@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0712292019450.14355@wbgn129.biozentrum.uni-wuerzburg.de>
On Dec 29, 2007 8:22 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > Not only does it avoid the strlen() call also for longer prefixes; > it also avoids a C++ comment. >
Avoiding a C++ comment is good ;-) sorry, it slipped to me.
What your patch does not seem to avoid is a segfault if prefix or str are NULL pointers.
Marco