]> 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)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 13 Oct 2016 08:08:52 +0000 (10:08 +0200)
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 5f239148e67ae793b76624e681b9d0c923b9d1bc..69401ef54d9e098e611624de8e0e30447f4d8af3 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;