]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: initialize empty name or email fields
authorMischa POSLAWSKY <git@shiar.nl>
Sat, 17 Aug 2019 21:51:07 +0000 (23:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2019 18:14:45 +0000 (11:14 -0700)
commit8b3f33ef11821a6a030f789eeb0b3af01469901e
treea710c9104ba7225ed3c27b917519fca2c2b6ed31
parent0d0ac3826a3bbb9247e39e12623bbcfdd722f24c
ref-filter: initialize empty name or email fields

Formatting $(taggername) on headerless tags such as v0.99 in Git
causes a SIGABRT with error "munmap_chunk(): invalid pointer",
because of an oversight in commit f0062d3b74 (ref-filter: free
item->value and item->value->s, 2018-10-19).

Signed-off-by: Mischa POSLAWSKY <git@shiar.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c
t/t6300-for-each-ref.sh