From 6a6f7309c686ad0e660ca51fdead1a2368aa61dc Mon Sep 17 00:00:00 2001 From: Stephan Bosch <stephan@rename-it.nl> Date: Sun, 21 Aug 2016 11:46:15 +0200 Subject: [PATCH] sieve-filter: Fixed a bool vs. int mixup. Found with clang -Wstrict-bool. --- src/sieve-tools/sieve-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sieve-tools/sieve-filter.c b/src/sieve-tools/sieve-filter.c index 31c9f050f..9c5c9b7c2 100644 --- a/src/sieve-tools/sieve-filter.c +++ b/src/sieve-tools/sieve-filter.c @@ -311,7 +311,7 @@ static int filter_mailbox /* Iterate through all requested messages */ - while ( ret >= 0 && mailbox_search_next(search_ctx, &mail) > 0 ) { + while ( ret >= 0 && mailbox_search_next(search_ctx, &mail) ) { ret = filter_message(&sfctx, mail); } -- GitLab