Skip to content

Commit a2417a0

Browse files
peffgitster
authored andcommitted
ref-filter: drop useless cast in trailers_atom_parser()
There's no need to cast invalid_arg before freeing it. It is already a non-const pointer. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 99448c3 commit a2417a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ref-filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ static int trailers_atom_parser(struct ref_format *format UNUSED,
578578
strbuf_addf(err, _("expected %%(trailers:key=<value>)"));
579579
else
580580
strbuf_addf(err, _("unknown %%(trailers) argument: %s"), invalid_arg);
581-
free((char *)invalid_arg);
581+
free(invalid_arg);
582582
return -1;
583583
}
584584
}

0 commit comments

Comments
 (0)