From: Timo Sirainen Date: Sat, 10 Sep 2016 08:15:00 +0000 (+0300) Subject: doveadm: Don't allow doveadm_print_header(title==NULL) anymore. X-Git-Tag: 2.2.26~207 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41f4efecd7ee37664b5c8877a76c0a5531990b27;p=thirdparty%2Fdovecot%2Fcore.git 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. --- diff --git a/src/doveadm/doveadm-print.c b/src/doveadm/doveadm-print.c index 5f239148e6..69401ef54d 100644 --- a/src/doveadm/doveadm-print.c +++ b/src/doveadm/doveadm-print.c @@ -37,8 +37,7 @@ void doveadm_print_header(const char *key, const char *title, 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;