/
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
convert trivial cases to ALLOC_ARRAY
[git/git.git]
/
attr.c
diff --git
a/attr.c
b/attr.c
index
086c08d
..
c83ec49
100644
(file)
--- a/
attr.c
+++ b/
attr.c
@@
-799,7
+799,7
@@
int git_all_attrs(const char *path, int *num, struct git_attr_check **check)
++count;
}
*num = count;
-
*check = xmalloc(sizeof(**check) *
count);
+
ALLOC_ARRAY(*check,
count);
j = 0;
for (i = 0; i < attr_nr; i++) {
const char *value = check_all_attr[i].value;