Skip to content
Snippets Groups Projects
Commit dabacd9a authored by Stephan Bosch's avatar Stephan Bosch Committed by Stephan Bosch
Browse files

lib-sieve: deprecated notify extension: Fixed various bool vs. int/pointer mixups.

Found with clang -Wstrict-bool.
parent f95c6c0c
No related branches found
No related tags found
No related merge requests found
......@@ -283,12 +283,12 @@ static int cmd_notify_address_validate
if ( sieve_argument_is_string_literal(arg) ) {
string_t *address = sieve_ast_argument_str(arg);
const char *error;
bool result = FALSE;
int result;
T_BEGIN {
result = sieve_address_validate(address, &error);
result = ( sieve_address_validate(address, &error) ? 1 : -1 );
if ( !result ) {
if ( result <= 0 ) {
sieve_argument_validate_error(valdtr, arg,
"specified :options address '%s' is invalid for "
"the mailto notify method: %s",
......@@ -299,7 +299,7 @@ static int cmd_notify_address_validate
return result;
}
return TRUE;
return 1;
}
static bool cmd_notify_validate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.