From d0544d42a0cd4aa6f1b8d52c90c0e65b9d1c335b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 3 Jun 2013 17:40:01 +0100 Subject: [PATCH] Do not add empty fuzzy hashes. --- src/plugins/fuzzy_check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index d16bc94b0..d6393030b 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -850,7 +850,8 @@ fuzzy_process_handler (struct controller_session *session, f_str_t * in) while (cur) { part = cur->data; - if (part->is_empty) { + if (part->is_empty || part->fuzzy == NULL || part->fuzzy->hash_pipe[0] == '\0') { + /* Skip empty parts */ cur = g_list_next (cur); continue; } -- 2.39.5