changeset 11600:c23ca08ca085 HEAD

doveadm: Don't crash with tab formatter at deinit.
author Timo Sirainen <tss@iki.fi>
date Mon, 21 Jun 2010 17:14:55 +0100
parents e5730fb45680
children 52e2f3a8054f
files src/doveadm/doveadm-print.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);