[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-114-gd82adf835

wwp at claws-mail.org wwp at claws-mail.org
Fri Sep 3 14:41:16 UTC 2021


The branch, gtk3 has been updated
       via  d82adf835c4aa6da50f9c472c13ba359dcdfb865 (commit)
      from  a798323be950b715e1e647dc5d096b75695fa23e (commit)

Summary of changes:
 src/plugins/bogofilter/bogofilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit d82adf835c4aa6da50f9c472c13ba359dcdfb865
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 50841a203..2f3cb88f8 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