Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
notes: make get_note return pointer to struct object_id
[gitweb.git]
/
builtin
/
check-attr.c
diff --git
a/builtin/check-attr.c
b/builtin/check-attr.c
index 40cdff13e98e5f605bfce42c9dad0718706d3624..4d01ca0c8ba0ba2a1d2c209b766e19d9ca9c8ac0 100644
(file)
--- a/
builtin/check-attr.c
+++ b/
builtin/check-attr.c
@@
-166,7
+166,8
@@
int cmd_check_attr(int argc, const char **argv, const char *prefix)
check = attr_check_alloc();
if (!all_attrs) {
for (i = 0; i < cnt; i++) {
- struct git_attr *a = git_attr(argv[i]);
+ const struct git_attr *a = git_attr(argv[i]);
+
if (!a)
return error("%s: not a valid attribute name",
argv[i]);