Mercurial > dovecot > core-2.2
changeset 20658:615a4772cd6a
lib-storage: Make sure data->stream isn't NULL
Makes static analysers happy
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Tue, 16 Aug 2016 14:39:37 +0300 |
parents | 916feb3ff7f9 |
children | 50800a4afb26 |
files | src/lib-storage/index/index-mail-headers.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail-headers.c Tue Aug 16 14:36:07 2016 +0300 +++ b/src/lib-storage/index/index-mail-headers.c Tue Aug 16 14:39:37 2016 +0300 @@ -439,6 +439,8 @@ if (mail_get_hdr_stream_because(&mail->mail.mail, NULL, reason, &input) < 0) return -1; + i_assert(data->stream != NULL); + index_mail_parse_header_init(mail, headers); if (data->parts == NULL || data->save_bodystructure_header) {