Skip to content

Commit

Permalink
lib-sieve: mailbox extension: Fixed invalid use of sieve_ast_stringli…
Browse files Browse the repository at this point in the history
…st_map().

Mixed up bool and int return types.
Found with clang -Wstrict-bool.
  • Loading branch information
stephanbosch committed Aug 25, 2016
1 parent e180373 commit 01f7d9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib-sieve/plugins/mailbox/tst-mailboxexists.c
Expand Up @@ -85,7 +85,7 @@ static int tst_mailboxexists_mailbox_validate
}
}

return TRUE;
return 1;
}

static bool tst_mailboxexists_validate
Expand All @@ -108,8 +108,8 @@ static bool tst_mailboxexists_validate
valctx.valdtr = valdtr;
valctx.tst = tst;

return sieve_ast_stringlist_map
(&aarg, (void*)&valctx, tst_mailboxexists_mailbox_validate);
return ( sieve_ast_stringlist_map(&aarg,
(void*)&valctx, tst_mailboxexists_mailbox_validate) >= 0 );
}

/*
Expand Down

0 comments on commit 01f7d9f

Please sign in to comment.