Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
use strchrnul() in place of strchr() and strlen()
author
Rohit Mani
<rohit.mani@outlook.com>
Sat, 8 Mar 2014 06:48:31 +0000
(22:48 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 10 Mar 2014 15:35:30 +0000
(08:35 -0700)
Avoid scanning strings twice, once with strchr() and then with
strlen(), by using strchrnul().
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Rohit Mani <rohit.mani@outlook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
raw
|
patch
| inline |
side by side
(from:
2c5495f
)
No differences found