summaryrefslogtreecommitdiff
path: root/ls-tree.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-12-26 12:34:56 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2005-12-26 17:23:59 -0800
commit7e4a2a848377241b8fb4f624d1151bbf2f8d5814 (patch)
tree5b7f555c6aebd9c32b97dc27f3a18723549415f3 /ls-tree.c
parentshort circuit out of a few places where we would allocate zero bytes (diff)
downloadtgif-7e4a2a848377241b8fb4f624d1151bbf2f8d5814.tar.xz
avoid asking ?alloc() for zero bytes.
Avoid asking for zero bytes when that change simplifies overall logic. Later we would change the wrapper to ask for 1 byte on platforms that return NULL for zero byte request. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ls-tree.c')
0 files changed, 0 insertions, 0 deletions