aboutsummaryrefslogtreecommitdiff
path: root/test-hashmap.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-12-22 12:27:46 -0800
committerJunio C Hamano <gitster@pobox.com>2014-12-22 12:27:46 -0800
commit6d43519a8ee8dd2d9b695733c819101dcc713683 (patch)
tree029ce04cd6cf7e828ac8492dfb081b08fbe125ae /test-hashmap.c
parent1cb4b3d380fe42a837adfb68126a312f605680f8 (diff)
parent3b9a2b07ef411d9f0066db2a5d98ff5a1f6669a5 (diff)
downloadgit-6d43519a8ee8dd2d9b695733c819101dcc713683.tar.gz
git-6d43519a8ee8dd2d9b695733c819101dcc713683.tar.xz
Merge branch 'js/test-hashmap-squelch-gcc'
* js/test-hashmap-squelch-gcc: test-hashmap: squelch gcc compiler warning
Diffstat (limited to 'test-hashmap.c')
-rw-r--r--test-hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-hashmap.c b/test-hashmap.c
index 07aa7ecde..cc2891dd9 100644
--- a/test-hashmap.c
+++ b/test-hashmap.c
@@ -47,7 +47,7 @@ static struct test_entry *alloc_test_entry(int hash, char *key, int klen,
static unsigned int hash(unsigned int method, unsigned int i, const char *key)
{
- unsigned int hash;
+ unsigned int hash = 0;
switch (method & 3)
{
case HASH_METHOD_FNV: