diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-11 15:00:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-11 15:00:43 -0700 |
commit | e5229b6a61fefcacd63d11afd49f0cdafaa60801 (patch) | |
tree | f4ada72f9054df19056a86bde7d3fcd7b5e668c5 | |
parent | Merge branch 'js/xread-in-full' (diff) | |
parent | mailmap: remove redundant check for freeing memory (diff) | |
download | tgif-e5229b6a61fefcacd63d11afd49f0cdafaa60801.tar.xz |
Merge branch 'sb/mailmap-freeing-NULL-is-ok'
* sb/mailmap-freeing-NULL-is-ok:
mailmap: remove redundant check for freeing memory
-rw-r--r-- | mailmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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++) |