[Commits] [SCM] claws branch, master, updated. 3.18.0-73-g926ae8cf3
wwp at claws-mail.org
wwp at claws-mail.org
Fri Sep 3 14:53:29 UTC 2021
The branch, master has been updated
via 926ae8cf38c2cf722a0280a093c74b47312b9b83 (commit)
from 4a78b9be9f990c1bf589778e8d7fbb00b65fe62c (commit)
Summary of changes:
src/plugins/bogofilter/bogofilter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 926ae8cf38c2cf722a0280a093c74b47312b9b83
Author: wwp <subscript at free.fr>
Date: Fri Sep 3 16:40:58 2021 +0200
Bogofilter: fix wrong test for read() return value.
diff --git a/src/plugins/bogofilter/bogofilter.c b/src/plugins/bogofilter/bogofilter.c
index 131aab92f..ef80eb399 100644
--- a/src/plugins/bogofilter/bogofilter.c
+++ b/src/plugins/bogofilter/bogofilter.c
@@ -230,7 +230,7 @@ static void bogofilter_do_filter(BogoFilterData *data)
g_free(tmp);
memset(buf, 0, sizeof(buf));
/* get the result */
- if (n_read = read(bogo_stdout, buf, sizeof(buf)-1) < 0) {
+ if ((n_read = read(bogo_stdout, buf, sizeof(buf)-1)) < 0) {
g_warning("bogofilter short read");
debug_print("message %d is ham\n", msginfo->msgnum);
data->mail_filtering_data->unfiltered = g_slist_prepend(
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list