summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
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 fdf5c1b80..fd42e2c5b 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -78,7 +78,7 @@ void *git_cache_get(git_cache *cache, const git_oid *oid)
{
const uint32_t *hash;
size_t i, pos, found = 0;
- cache_node *node;
+ cache_node *node = NULL;
hash = (const uint32_t *)oid->id;