]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Don't allow doveadm_print_header(title==NULL) anymore.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 10 Sep 2016 08:15:00 +0000 (11:15 +0300)
committerGitLab <gitlab@git.dovecot.net>
Tue, 13 Sep 2016 14:51:25 +0000 (17:51 +0300)
It's not used anywhere, and if it was used it would have crashed with at
least "tab" backend.

src/doveadm/doveadm-print.c

index 08e1f8f90bcd1cd3fd52dd2a271b3956462f642c..cc9b389f46473174a01f8a4357c0772256a37aae 100644 (file)
@@ -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;