summaryrefslogtreecommitdiff
path: root/t/t1060-object-corruption.sh
diff options
context:
space:
mode:
authorLibravatar Hans Jerry Illikainen <hji@dyntopia.com>2019-11-21 23:43:35 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-23 09:09:32 +0900
commit392b862e9aea69acf43532527e27644c97e3ea56 (patch)
tree1a76d1e2b6aa65b1e3f35f60b21a5dc7860c7ea2 /t/t1060-object-corruption.sh
parentGit 2.22.1 (diff)
downloadtgif-392b862e9aea69acf43532527e27644c97e3ea56.tar.xz
gpg-interface: refactor the free-and-xmemdupz pattern
Introduce a static replace_cstring() function to simplify repeated pattern of free-and-xmemdupz() for GPG status line parsing. This also helps us avoid potential memleaks if parsing of new status lines are introduced in the future. Signed-off-by: Hans Jerry Illikainen <hji@dyntopia.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1060-object-corruption.sh')
0 files changed, 0 insertions, 0 deletions