Use xmalloc instead of malloc

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Jonas Fonseca
2006-09-01 00:32:39 +02:00
committed by Junio C Hamano
parent ef1186228d
commit 2d7320d0b0
9 changed files with 16 additions and 16 deletions

View File

@ -1756,7 +1756,7 @@ int read_pipe(int fd, char** return_buf, unsigned long* return_size)
int index_pipe(unsigned char *sha1, int fd, const char *type, int write_object)
{
unsigned long size = 4096;
char *buf = malloc(size);
char *buf = xmalloc(size);
int ret;
unsigned char hdr[50];
int hdrlen;