author | Junio C Hamano <junkio@cox.net> | |
Mon, 26 Dec 2005 20:34:56 +0000 (12:34 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 27 Dec 2005 01:23:59 +0000 (17:23 -0800) | ||
commit | 7e4a2a848377241b8fb4f624d1151bbf2f8d5814 | |
tree | 5b7f555c6aebd9c32b97dc27f3a18723549415f3 | tree | snapshot |
parent | 7d6fb370bc98e5d4723103dda0829b00c79da213 | commit | diff |
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>
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>
diff.c | diff | blob | history | |
diffcore-order.c | diff | blob | history | |
diffcore-pathspec.c | diff | blob | history | |
index-pack.c | diff | blob | history | |
read-tree.c | diff | blob | history | |
tree-diff.c | diff | blob | history |