Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Use xmalloc instead of malloc
[gitweb.git]
/
git.c
diff --git
a/git.c
b/git.c
index bd07289d71a75ad0280bae21c64c4c4be86f80d2..05871ad42c8c20999e2dd977ea6033f38614e862 100644
(file)
--- a/
git.c
+++ b/
git.c
@@
-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 =
x
malloc(path_len + 1);
memcpy(path, dir, len);
path[len] = ':';