Commit 40be9ae0 by nulltoken

Fixes a Win32/MSVC compilation issue.

parent 412b3887
...@@ -208,9 +208,10 @@ size_t git_tree_entrycount(git_tree *tree) ...@@ -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) 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); assert(tree && id && filename);
git_tree_entry *entry;
if ((entry = git__malloc(sizeof(git_tree_entry))) == NULL) if ((entry = git__malloc(sizeof(git_tree_entry))) == NULL)
return GIT_ENOMEM; return GIT_ENOMEM;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment