Merge branch 'sb/mailmap-freeing-NULL-is-ok'
* sb/mailmap-freeing-NULL-is-ok: mailmap: remove redundant check for freeing memory
This commit is contained in:
commit
e5229b6a61
@ -153,8 +153,7 @@ 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);
|
||||||
|
|
||||||
for (cp = buffer + abblen; isspace(*cp); cp++)
|
for (cp = buffer + abblen; isspace(*cp); cp++)
|
||||||
|
Loading…
Reference in New Issue
Block a user