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

2
git.c
View File

@ -29,7 +29,7 @@ static void prepend_to_path(const char *dir, int len)
path_len = len + strlen(old_path) + 1;
path = malloc(path_len + 1);
path = xmalloc(path_len + 1);
memcpy(path, dir, len);
path[len] = ':';