Skip to content

Commit

Permalink
Merge branch 'sb/mailmap-freeing-NULL-is-ok'
Browse files Browse the repository at this point in the history
* sb/mailmap-freeing-NULL-is-ok:
  mailmap: remove redundant check for freeing memory
  • Loading branch information
gitster committed Sep 11, 2013
2 parents 0a3bc7d + c9ba31f commit e5229b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mailmap.c
Expand Up @@ -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++)
Expand Down

0 comments on commit e5229b6

Please sign in to comment.