diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-05-14 18:05:33 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2011-05-14 18:05:33 +0400 |
commit | 3abe3bba5ab234a8fcbf4cc7a50adc86323d7287 (patch) | |
tree | b5cfe9d449e4dbe22cd034cd0a777827af2e7e64 /src/cache.c | |
parent | 77c3999ca928539c6ba9a29910bbe99d2b705efd (diff) |
Move repository.c to the new error handling
Diffstat (limited to 'src/cache.c')
-rw-r--r-- | src/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c index fd42e2c5b..a372df160 100644 --- a/src/cache.c +++ b/src/cache.c @@ -51,7 +51,7 @@ void git_cache_init(git_cache *cache, size_t size, git_cached_obj_freeptr free_p cache->lru_count = 0; cache->free_obj = free_ptr; - cache->nodes = git__malloc((size + 1) * sizeof(cache_node)); + cache->nodes = git__malloc((size + 1) * sizeof(cache_node)); //TODO: How should we deal with GIT_ENOMEM? for (i = 0; i < (size + 1); ++i) { git_mutex_init(&cache->nodes[i].lock); |