diff options
| author | Jeff King <peff@peff.net> | 2024-09-09 19:14:59 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-09 16:26:09 -0700 |
| commit | a2417a03c92d5a1cbd7d9b7e787e9d3882ad8842 (patch) | |
| tree | 9b7444e2d8caba5c0d334cb3977caec6ad99be42 /ref-filter.c | |
| parent | ref-filter: strip signature when parsing tag trailers (diff) | |
| download | git-a2417a03c92d5a1cbd7d9b7e787e9d3882ad8842.tar.gz git-a2417a03c92d5a1cbd7d9b7e787e9d3882ad8842.zip | |
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ref-filter.c')
| -rw-r--r-- | ref-filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ref-filter.c b/ref-filter.c index e39f505a81..4d0df546da 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -578,7 +578,7 @@ static int trailers_atom_parser(struct ref_format *format UNUSED, strbuf_addf(err, _("expected %%(trailers:key=<value>)")); else strbuf_addf(err, _("unknown %%(trailers) argument: %s"), invalid_arg); - free((char *)invalid_arg); + free(invalid_arg); return -1; } } |
