Re: [GSoC][PATCH v2] use strchrnul() in place of strchr() and strlen()
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 10, 2014, 15:36 UTC
- Message-ID
- <xmqq1tyarrox.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <BLU0-SMTP956BEABA437FB370F76953918A0@phx.gbl>
Rohit Mani <rohit.mani@outlook.com> writes:
> Avoid scanning strings twice, once with strchr() and then with > strlen(), by using strchrnul().
Thanks. The patch looks good.