summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test-hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-hashmap.c b/test-hashmap.c
index 581d2964e4..d85670976f 100644
--- a/test-hashmap.c
+++ b/test-hashmap.c
@@ -48,7 +48,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: