changeset 19652:ebc657852018

lib: Make static analyzer happier about istream-chain changes
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 27 Jan 2016 10:17:44 +0200
parents b77fff55d62c
children 9a021ef4841a
files src/lib/istream-chain.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/istream-chain.c	Wed Jan 27 02:04:00 2016 +0200
+++ b/src/lib/istream-chain.c	Wed Jan 27 10:17:44 2016 +0200
@@ -201,6 +201,7 @@
 
 	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);