dovecot-2.0: doveadm: Don't crash with tab formatter at deinit.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 21 19:14:58 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/c23ca08ca085
changeset: 11600:c23ca08ca085
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 21 17:14:55 2010 +0100
description:
doveadm: Don't crash with tab formatter at deinit.
diffstat:
src/doveadm/doveadm-print.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r e5730fb45680 -r c23ca08ca085 src/doveadm/doveadm-print.c
--- a/src/doveadm/doveadm-print.c Mon Jun 21 16:59:57 2010 +0100
+++ b/src/doveadm/doveadm-print.c Mon Jun 21 17:14:55 2010 +0100
@@ -147,7 +147,8 @@
if (ctx->v->flush != NULL)
ctx->v->flush();
- ctx->v->deinit();
+ if (ctx->v->deinit != NULL)
+ ctx->v->deinit();
array_foreach_modifiable(&ctx->headers, hdr)
i_free(hdr->sticky_value);
pool_unref(&ctx->pool);
More information about the dovecot-cvs
mailing list