apply.c::find_name_traditional(): do not initialize len to the line's length
commit1f976bd03f26b70dfbb26b3f9478df09709db966
authorStefan Beller <stefanbeller@googlemail.com>
Thu, 18 Jul 2013 21:35:27 +0000 (18 23:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jul 2013 18:15:17 +0000 (19 11:15 -0700)
tree06c48ba55592b29a15b0a265ac08dfdefacbd25d
parent3def06e625099907fb44c519611188904b6937a2
apply.c::find_name_traditional(): do not initialize len to the line's length

The variable len is set to

    len = strchrnul(line, '\n') - line;

unconditionally 9 lines later, hence we can remove the call to strlen.

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c