summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-05-14 16:05:33 +0200
committernulltoken <emeric.fermas@gmail.com>2011-05-14 16:05:33 +0200
commit3abe3bba5ab234a8fcbf4cc7a50adc86323d7287 (patch)
treeb5cfe9d449e4dbe22cd034cd0a777827af2e7e64 /src/cache.c
parent77c3999ca928539c6ba9a29910bbe99d2b705efd (diff)
downloadlibgit2-3abe3bba5ab234a8fcbf4cc7a50adc86323d7287.tar.gz
Move repository.c to the new error handling
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c2
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);