Mercurial > dovecot > core-2.2
changeset 20794:4f23573700c9
doveadm: Don't allow doveadm_print_header(title==NULL) anymore.
It's not used anywhere, and if it was used it would have crashed with at
least "tab" backend.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sat, 10 Sep 2016 11:15:00 +0300 |
parents | d8443eb446a8 |
children | cdc4eabdb514 |
files | src/doveadm/doveadm-print.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/doveadm-print.c Fri Sep 09 17:40:58 2016 +0300 +++ b/src/doveadm/doveadm-print.c Sat Sep 10 11:15:00 2016 +0300 @@ -37,8 +37,7 @@ struct doveadm_print_header hdr; struct doveadm_print_header_context *hdr_ctx; - if (title == NULL) - flags |= DOVEADM_PRINT_HEADER_FLAG_HIDE_TITLE; + i_assert(title != NULL); memset(&hdr, 0, sizeof(hdr)); hdr.key = key;