Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7174:f090b6bf8021 HEAD
Don't crash if sync initialization fails.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 20 Jan 2008 09:13:23 +0200 |
parents | 9841a8563116 |
children | 93fe72ef59f6 |
files | src/lib-storage/index/index-sync.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-sync.c Sun Jan 20 08:54:57 2008 +0200 +++ b/src/lib-storage/index/index-sync.c Sun Jan 20 09:13:23 2008 +0200 @@ -320,7 +320,8 @@ if (ret == 0 && status_items != 0) mailbox_get_status(_ctx->box, status_items, status_r); - array_free(&ctx->flag_updates); + if (array_is_created(&ctx->flag_updates)) + array_free(&ctx->flag_updates); i_free(ctx); return ret; }