Re: [PATCH 2/2] branch: clean up repeated strlen
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 19, 2009, 11:31 UTC
- Message-ID
- <alpine.DEB.1.00.0902191231050.6223@intel-tinevez-2-302>
- In-Reply-To
- <20090219033545.GB18970@coredump.intra.peff.net>
Hi,
On Wed, 18 Feb 2009, Jeff King wrote:
Show 8 quoted lines
> Commit 45e2b61 fixed the initialization of a "len" struct > parameter via strlen. We can use that to clean up what is > now 3 strlens in a 6-line sequence. > > Signed-off-by: Jeff King <peff@peff.net> > --- > I guess a good compiler could optimize these out, but I think it > actually reads a little bit nicer.
Definitely. And thanks for the tests!
Ciao, Dscho