Merge branch 'sb/mailmap-freeing-NULL-is-ok'

* sb/mailmap-freeing-NULL-is-ok:
  mailmap: remove redundant check for freeing memory
maint
Junio C Hamano 2013-09-11 15:00:43 -07:00
commit e5229b6a61
1 changed files with 1 additions and 2 deletions

View File

@ -153,7 +153,6 @@ static void read_mailmap_line(struct string_list *map, char *buffer,
if (!strncmp(buffer, abbrev, abblen)) { if (!strncmp(buffer, abbrev, abblen)) {
char *cp; char *cp;


if (repo_abbrev)
free(*repo_abbrev); free(*repo_abbrev);
*repo_abbrev = xmalloc(len); *repo_abbrev = xmalloc(len);