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>
maint
Stefan Beller 2013-07-18 23:35:27 +02:00 committed by Junio C Hamano
parent 3def06e625
commit 1f976bd03f
1 changed files with 1 additions and 1 deletions

View File

@ -722,7 +722,7 @@ static char *find_name(const char *line, char *def, int p_value, int terminate)

static char *find_name_traditional(const char *line, char *def, int p_value)
{
size_t len = strlen(line);
size_t len;
size_t date_len;

if (*line == '"') {