]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Don't crash with tab formatter at deinit.
authorTimo Sirainen <tss@iki.fi>
Mon, 21 Jun 2010 16:14:55 +0000 (17:14 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 21 Jun 2010 16:14:55 +0000 (17:14 +0100)
--HG--
branch : HEAD

src/doveadm/doveadm-print.c

index ad6e8d39aca1e33a95cb5aabaaffd8711ea87a93..fbd5b6a40d77355b48520e9395326c11e41fb424 100644 (file)
@@ -147,7 +147,8 @@ void doveadm_print_deinit(void)
 
        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);