Commit 64c520c7 authored by Marcus Lundblad's avatar Marcus Lundblad Committed by Youness Alaoui

Fix, make the nice address hash function actually work correctly

parent 671f32b4
...@@ -136,7 +136,7 @@ priv_nice_address_hash (gconstpointer data) ...@@ -136,7 +136,7 @@ priv_nice_address_hash (gconstpointer data)
{ {
int *buf = (int *) data; int *buf = (int *) data;
size_t i; size_t i;
guint hash; guint hash = 0;
for (i = 0 ; i < sizeof(NiceAddress) / sizeof(int) ; i++) { for (i = 0 ; i < sizeof(NiceAddress) / sizeof(int) ; i++) {
hash ^= g_int_hash(&buf[i]); hash ^= g_int_hash(&buf[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment