Skip to content

Commit e5229b6

Browse files
committed
Merge branch 'sb/mailmap-freeing-NULL-is-ok'
* sb/mailmap-freeing-NULL-is-ok: mailmap: remove redundant check for freeing memory
2 parents 0a3bc7d + c9ba31f commit e5229b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mailmap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ static void read_mailmap_line(struct string_list *map, char *buffer,
153153
if (!strncmp(buffer, abbrev, abblen)) {
154154
char *cp;
155155

156-
if (repo_abbrev)
157-
free(*repo_abbrev);
156+
free(*repo_abbrev);
158157
*repo_abbrev = xmalloc(len);
159158

160159
for (cp = buffer + abblen; isspace(*cp); cp++)

0 commit comments

Comments
 (0)