commit e2c1dc9: [Minor] Grrr, fix operator
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Nov 18 12:21:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-11-18 12:20:26 +0000
URL: https://github.com/rspamd/rspamd/commit/e2c1dc95b2e24fdd96553a6f40bfa1f477ea834b (HEAD -> master)
[Minor] Grrr, fix operator
---
src/libmime/scan_result.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c
index 23964c88e..c7c2647d2 100644
--- a/src/libmime/scan_result.c
+++ b/src/libmime/scan_result.c
@@ -529,7 +529,7 @@ rspamd_task_add_result_option (struct rspamd_task *task,
vlen = strlen (val);
- if (rspamd_fast_utf8_validate (val, vlen) == 0) {
+ if (rspamd_fast_utf8_validate (val, vlen) != 0) {
opt_cpy = rspamd_str_make_utf_valid (val, vlen, &vlen,
task->task_pool);
val = opt_cpy;
More information about the Commits
mailing list