]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Make static analyzer happier about istream-chain changes
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 27 Jan 2016 08:17:44 +0000 (10:17 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 27 Jan 2016 08:17:44 +0000 (10:17 +0200)
src/lib/istream-chain.c

index 0c0d0eb0c0ac709eadf0342336b16f3f0b43bee4..27fd43778a9e7b659af1d2e7edcd69f8226618fa 100644 (file)
@@ -201,6 +201,7 @@ static ssize_t i_stream_chain_read(struct istream_private *stream)
 
        if (!i_stream_chain_skip(cstream))
                return 0;
+       i_assert(link != NULL);
 
        i_assert(stream->pos >= stream->skip + cstream->prev_stream_left);
        cur_data_pos = stream->pos - (stream->skip + cstream->prev_stream_left);