Skip to content

Commit 6d43519

Browse files
committed
Merge branch 'js/test-hashmap-squelch-gcc'
* js/test-hashmap-squelch-gcc: test-hashmap: squelch gcc compiler warning
2 parents 1cb4b3d + 3b9a2b0 commit 6d43519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-hashmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static struct test_entry *alloc_test_entry(int hash, char *key, int klen,
4747

4848
static unsigned int hash(unsigned int method, unsigned int i, const char *key)
4949
{
50-
unsigned int hash;
50+
unsigned int hash = 0;
5151
switch (method & 3)
5252
{
5353
case HASH_METHOD_FNV:

0 commit comments

Comments
 (0)