diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2013-02-21 11:00:29 -0600 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2013-02-21 11:00:29 -0600 |
| commit | eb5ffd19449b68f524aaf9dc70d28a8ce7d354fa (patch) | |
| tree | f84e7f35e713f1b30ff5a3b0a40708b8cd6b46c8 /src/index.c | |
| parent | f2e1d06064696a07c917dbcce0dd04c1cbfe32e9 (diff) | |
| download | libgit2-eb5ffd19449b68f524aaf9dc70d28a8ce7d354fa.tar.gz | |
add a sorter to the reuc on index creation
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index 25156d08f..59649083b 100644 --- a/src/index.c +++ b/src/index.c @@ -275,7 +275,8 @@ int git_index_open(git_index **index_out, const char *index_path) index->on_disk = 1; } - if (git_vector_init(&index->entries, 32, index_cmp) < 0) + if (git_vector_init(&index->entries, 32, index_cmp) < 0 || + git_vector_init(&index->reuc, 32, reuc_cmp) < 0) return -1; index->entries_cmp_path = index_cmp_path; |
