summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-12-22 12:27:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-12-22 12:27:46 -0800
commit6d43519a8ee8dd2d9b695733c819101dcc713683 (patch)
tree029ce04cd6cf7e828ac8492dfb081b08fbe125ae
parentMerge branch 'js/fsck-tag-validation' (diff)
parenttest-hashmap: squelch gcc compiler warning (diff)
downloadtgif-6d43519a8ee8dd2d9b695733c819101dcc713683.tar.xz
Merge branch 'js/test-hashmap-squelch-gcc'
* js/test-hashmap-squelch-gcc: test-hashmap: squelch gcc compiler warning
-rw-r--r--test-hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-hashmap.c b/test-hashmap.c
index 07aa7ecdee..cc2891dd97 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: