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

@ -119,7 +119,7 @@ static int verify_tag(char *buffer, unsigned long size)
int main(int argc, char **argv)
{
unsigned long size = 4096;
char *buffer = malloc(size);
char *buffer = xmalloc(size);
unsigned char result_sha1[20];
if (argc != 1)