Skip to content

Commit

Permalink
lib-sieve: metadata extension: Fixed invalid use of sieve_ast_stringl…
Browse files Browse the repository at this point in the history
…ist_map().

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

return TRUE; /* Can't check at compile time */
return 1; /* Can't check at compile time */
}

static bool tst_metadataexists_validate
Expand Down Expand Up @@ -179,8 +179,8 @@ static bool tst_metadataexists_validate
valctx.valdtr = valdtr;
valctx.tst = tst;

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

/*
Expand Down

0 comments on commit f95c6c0

Please sign in to comment.