Permalink
Browse files

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

* sb/mailmap-freeing-NULL-is-ok:
  mailmap: remove redundant check for freeing memory
  • Loading branch information...
2 parents 0a3bc7d + c9ba31f commit e5229b6a61fefcacd63d11afd49f0cdafaa60801 @gitster gitster committed Sep 11, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 mailmap.c
View
@@ -153,8 +153,7 @@ static void read_mailmap_line(struct string_list *map, char *buffer,
if (!strncmp(buffer, abbrev, abblen)) {
char *cp;
- if (repo_abbrev)
- free(*repo_abbrev);
+ free(*repo_abbrev);
*repo_abbrev = xmalloc(len);
for (cp = buffer + abblen; isspace(*cp); cp++)

0 comments on commit e5229b6

Please sign in to comment.