summaryrefslogtreecommitdiff
path: root/cache-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-26 09:26:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-26 09:27:05 (GMT)
commita8f3e2219c237661a30b54fe23d58e055f0b548c (patch)
tree440d74bf40b2ac091d625edeb72b43e47609e59a /cache-tree.c
parent7a33bcbe802080f3a926e93d66b65ff7c5e8c5ed (diff)
downloadgit-a8f3e2219c237661a30b54fe23d58e055f0b548c.zip
git-a8f3e2219c237661a30b54fe23d58e055f0b548c.tar.gz
git-a8f3e2219c237661a30b54fe23d58e055f0b548c.tar.bz2
strbuf_setlen(): do not barf on setting length of an empty buffer to 0
strbuf_setlen() expect to be able to NUL terminate the buffer, but a completely empty strbuf could have an empty buffer with 0 allocation; both the assert() and the assignment for NUL termination would fail. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache-tree.c')
0 files changed, 0 insertions, 0 deletions