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

lib-sieve: sieve-stringlist - Assert that index for the index stringlist is not 0.

parent 8c6a3928
No related branches found
No related tags found
Loading
...@@ -218,6 +218,7 @@ static int sieve_index_stringlist_next_item ...@@ -218,6 +218,7 @@ static int sieve_index_stringlist_next_item
index = strlist->index; index = strlist->index;
} }
i_assert(index > 0);
while ( index > 0 ) { while ( index > 0 ) {
if ( (ret=sieve_stringlist_next_item(strlist->source, str_r)) <= 0 ) { if ( (ret=sieve_stringlist_next_item(strlist->source, str_r)) <= 0 ) {
if (ret < 0) if (ret < 0)
......
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.