Skip to content

Commit

Permalink
lib-sieve: Make static analyzer happier about use of sieve_ast_string…
Browse files Browse the repository at this point in the history
…list_map().

Added assertions.
  • Loading branch information
stephanbosch committed Jun 28, 2016
1 parent e2aa316 commit 8259261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-sieve/ext-envelope.c
Expand Up @@ -569,7 +569,7 @@ static bool tst_envelope_validate
epart = arg;
if ( sieve_ast_stringlist_map(&epart, (void *) &not_address,
_envelope_part_is_supported) <= 0 ) {

i_assert(epart != NULL);
sieve_argument_validate_error(valdtr, epart,
"specified envelope part '%s' is not supported by the envelope test",
str_sanitize(sieve_ast_strlist_strc(epart), 64));
Expand Down
1 change: 1 addition & 0 deletions src/lib-sieve/tst-address.c
Expand Up @@ -167,6 +167,7 @@ static bool tst_address_validate
header = arg;
if ( sieve_ast_stringlist_map
(&header, NULL, _header_is_allowed) <= 0 ) {
i_assert(header != NULL);
sieve_argument_validate_error(valdtr, header,
"specified header '%s' is not allowed for the address test",
str_sanitize(sieve_ast_strlist_strc(header), 64));
Expand Down

0 comments on commit 8259261

Please sign in to comment.