if (file->fd == -1) {
if (fs_posix_open(file) < 0)
return -1;
+ i_assert(file->fd != -1);
}
if (file->open_mode != FS_OPEN_MODE_APPEND) {
if (log->fd == -1) {
if (mailbox_log_open(log) < 0)
return -1;
+ i_assert(log->fd != -1);
}
/* We don't bother with locking, atomic appends will protect us.
if (conn->fd == -1) {
if (!stats_connection_open(conn))
return -1;
+ i_assert(conn->fd != -1);
}
if (str_len(str) > PIPE_BUF && !pipe_warned) {
old_offset = data->stream == NULL ? 0 : data->stream->v_offset;
if (mail_get_stream(_mail, NULL, NULL, &input) < 0)
return -1;
+ i_assert(data->stream != NULL);
i_stream_seek(data->stream, old_offset);
ret = i_stream_get_size(data->stream, TRUE,
if (stream->fd == -1) {
if (i_stream_file_open(stream) < 0)
return -1;
+ i_assert(stream->fd != -1);
}
offset = stream->istream.v_offset + (stream->pos - stream->skip);
if (state->notify_fd == -1) {
if (login_proxy_state_notify_open(state) < 0)
return TRUE;
+ i_assert(state->notify_fd != -1);
}
T_BEGIN {
{
fts_backend_update_unset_build_key(ctx);
if (ctx->backend_box != ctx->cur_box) {
+ i_assert(ctx->cur_box != NULL);
ctx->backend->v.update_set_mailbox(ctx, ctx->cur_box);
ctx->backend_box = ctx->cur_box;
}
return -1;
}
(void)virtual_mail_set_backend_mail(mail, bbox);
+ i_assert(vmail->cur_backend_mail != NULL);
}
virtual_backend_box_accessed(mbox, bbox);
vmail->cur_lost = !mail_set_uid(vmail->cur_backend_mail,