Commit 40be9ae0a80189d5d27307108323e7ed0cc5f539

nulltoken 2011-02-05T15:03:48

Fixes a Win32/MSVC compilation issue.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/tree.c b/src/tree.c
index 3b5cf05..d71cd37 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;