diff options
Diffstat (limited to 'test/rspamd_fuzzy_test.c')
-rw-r--r-- | test/rspamd_fuzzy_test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/rspamd_fuzzy_test.c b/test/rspamd_fuzzy_test.c index 004ebf3c0..7805e4f42 100644 --- a/test/rspamd_fuzzy_test.c +++ b/test/rspamd_fuzzy_test.c @@ -39,7 +39,7 @@ rspamd_fuzzy_test_func () memory_pool_t *pool; fuzzy_hash_t *h1, *h2, *h3, *h4, *h5; f_str_t f1, f2, f3, f4, f5; - int diff1, diff2; + int diff2; pool = memory_pool_new (1024); f1.begin = s1; @@ -59,7 +59,6 @@ rspamd_fuzzy_test_func () h4 = fuzzy_init (&f4, pool); h5 = fuzzy_init (&f5, pool); - diff1 = fuzzy_compare_hashes (h3, h4) + fuzzy_compare_hashes (h2, h4); diff2 = fuzzy_compare_hashes (h2, h5); msg_debug ("rspamd_fuzzy_test_func: s1, s2 difference between strings is %d", fuzzy_compare_hashes (h1, h2)); msg_debug ("rspamd_fuzzy_test_func: s1, s3 difference between strings is %d", fuzzy_compare_hashes (h1, h3)); |