/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use xmalloc() and friends to catch allocation failures
[git/git.git]
/
http.c
diff --git
a/http.c
b/http.c
index
1108ab4
..
0788936
100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-402,7
+402,7
@@
static struct fill_chain *fill_cfg = NULL;
void add_fill_function(void *data, int (*fill)(void *))
{
- struct fill_chain *new = malloc(sizeof(*new));
+ struct fill_chain *new =
x
malloc(sizeof(*new));
struct fill_chain **linkp = &fill_cfg;
new->data = data;
new->fill = fill;