Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
http.c: mark file-local functions static
[gitweb.git]
/
attr.c
diff --git
a/attr.c
b/attr.c
index 98eb636f13d314c20e18e646c074e2511b3c891c..55bdb7cdebea7f7ea551231fe7801f272d128d69 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.
*/