diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-02-05 15:03:48 +0100 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2011-02-05 15:03:48 +0100 |
| commit | 40be9ae0a80189d5d27307108323e7ed0cc5f539 (patch) | |
| tree | 7a84fac134ef5f990a9800845bc87393468e6a52 /src/tree.c | |
| parent | 412b3887761be5e8910b824c81b6f3637137446c (diff) | |
| download | libgit2-40be9ae0a80189d5d27307108323e7ed0cc5f539.tar.gz | |
Fixes a Win32/MSVC compilation issue.
Diffstat (limited to 'src/tree.c')
| -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; |
