Re: [GSoC][PATCH v2] use strchrnul() in place of strchr() and strlen()

2014-03-10 Thread Junio C Hamano
Rohit Mani rohit.m...@outlook.com writes: Avoid scanning strings twice, once with strchr() and then with strlen(), by using strchrnul(). Thanks. The patch looks good. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

[GSoC][PATCH v2] use strchrnul() in place of strchr() and strlen()

2014-03-07 Thread Rohit Mani
Avoid scanning strings twice, once with strchr() and then with strlen(), by using strchrnul(). Helped-by: Junio C Hamano gits...@pobox.com Signed-off-by: Rohit Mani rohit.m...@outlook.com --- PATCH v2 Updated commit description Updated code according to suggestions [1] [1]