summaryrefslogtreecommitdiff
path: root/templates/.gitignore
diff options
context:
space:
mode:
authorLibravatar Tay Ray Chuan <rctay89@gmail.com>2009-06-06 16:43:36 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-06-06 10:56:27 -0700
commit20cfb3aa710d302829a776d7fbad2b89f71f15b6 (patch)
treeb9e4153f98f61b91f7b2b3f86611bdc2fdaa63df /templates/.gitignore
parenthttp-walker: verify remote packs (diff)
downloadtgif-20cfb3aa710d302829a776d7fbad2b89f71f15b6.tar.xz
http*: copy string returned by sha1_to_hex
In the fetch_index implementations in http-push.c and http-walker.c, the string returned by sha1_to_hex is assumed to stay immutable. This patch ensures that hex stays immutable by copying the string returned by sha1_to_hex (via xstrdup) and frees it subsequently. It also refactors free()'s and fclose()'s with labels. Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'templates/.gitignore')
0 files changed, 0 insertions, 0 deletions