projects
/
git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Minor improvement to the write-tree documentation
[git]
/
attr.c
diff --git
a/attr.c
b/attr.c
index
98eb636
..
55bdb7c
100644
(file)
--- a/
attr.c
+++ b/
attr.c
@@
-35,8
+35,7
@@
static struct git_attr *(git_attr_hash[HASHSIZE]);
static unsigned hash_name(const char *name, int namelen)
{
- unsigned val = 0;
- unsigned char c;
+ unsigned val = 0, c;
while (namelen--) {
c = *name++;
@@
-556,6
+555,8
@@
static void prepare_attr_stack(const char *path, int dirlen)
}
}
+ strbuf_release(&pathbuf);
+
/*
* Finally push the "info" one at the top of the stack.
*/