]> git.ipfire.org Git - thirdparty/git.git/blobdiff - tree.c
tree-walk.c: do not leak internal structure in tree_entry_len()
[thirdparty/git.git] / tree.c
diff --git a/tree.c b/tree.c
index 698ecf7af13871cf9639e969f368ba5d7b2e940a..e62219803bee42889103e9607816f2d4125b6603 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -99,7 +99,7 @@ static int read_tree_1(struct tree *tree, struct strbuf *base,
                else
                        continue;
 
-               len = tree_entry_len(entry.path, entry.sha1);
+               len = tree_entry_len(&entry);
                strbuf_add(base, entry.path, len);
                strbuf_addch(base, '/');
                retval = read_tree_1(lookup_tree(sha1),