Commit 4edf3e099aafbdaea2e4e128fc3230b36af38f41

Vicent Marti 2011-05-15T23:45:24

Return success code on `git_cache_init`

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/cache.c b/src/cache.c
index b0a0931..0509afd 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -60,6 +60,8 @@ int git_cache_init(git_cache *cache, size_t size, git_cached_obj_freeptr free_pt
 		cache->nodes[i].ptr = NULL;
 		cache->nodes[i].lru = 0;
 	}
+
+	return GIT_SUCCESS;
 }
 
 void git_cache_free(git_cache *cache)