]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Added assert.
authorTimo Sirainen <tss@iki.fi>
Sun, 31 Aug 2008 08:47:07 +0000 (11:47 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 31 Aug 2008 08:47:07 +0000 (11:47 +0300)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-save.c

index 00f829e73d24bd68ddbea8a7d7423f4f8f2bdd00..507feb190edea019f591a498453ca14ca2a3e54f 100644 (file)
@@ -237,6 +237,7 @@ maildir_get_updated_filename(struct maildir_save_context *ctx,
                return FALSE;
        }
 
+       i_assert(ctx->keywords_sync_ctx != NULL || mf->keywords_count == 0);
        buffer_update_const_data(ctx->keywords_buffer, mf + 1,
                                 mf->keywords_count * sizeof(unsigned int));
        *fname_r = maildir_filename_set_flags(ctx->keywords_sync_ctx, basename,