diff options
-rw-r--r-- | src/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c index 3b5cf05a1..d71cd37d4 100644 --- a/src/tree.c +++ b/src/tree.c @@ -208,9 +208,10 @@ size_t git_tree_entrycount(git_tree *tree) int git_tree_add_entry_unsorted(git_tree_entry **entry_out, git_tree *tree, const git_oid *id, const char *filename, int attributes) { + git_tree_entry *entry; + assert(tree && id && filename); - git_tree_entry *entry; if ((entry = git__malloc(sizeof(git_tree_entry))) == NULL) return GIT_ENOMEM; |