]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
assert
authorTimo Sirainen <tss@iki.fi>
Tue, 21 Oct 2003 03:35:32 +0000 (06:35 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 21 Oct 2003 03:35:32 +0000 (06:35 +0300)
--HG--
branch : HEAD

src/lib-index/mail-cache.c

index e49742fa97ae605ce542a50ca213276bf18a0b1f..4ed4b447f8d46022569029ad24f841af9f45bc88 100644 (file)
@@ -1365,6 +1365,7 @@ int mail_cache_set_header_fields(struct mail_cache_transaction_ctx *ctx,
        uint32_t offset, update_offset, size;
        const char *header_str;
 
+       i_assert(*headers != NULL);
        i_assert(idx < MAIL_CACHE_HEADERS_COUNT);
        i_assert(idx >= ctx->next_unused_header_lowwater);
        i_assert(offset_to_uint32(cache->header->header_offsets[idx]) == 0);