Skip to content

Commit

Permalink
doveadm: Don't allow doveadm_print_header(title==NULL) anymore.
Browse files Browse the repository at this point in the history
It's not used anywhere, and if it was used it would have crashed with at
least "tab" backend.
  • Loading branch information
sirainen committed Oct 13, 2016
1 parent 429441c commit 41f4efe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/doveadm/doveadm-print.c
Expand Up @@ -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;
Expand Down

0 comments on commit 41f4efe

Please sign in to comment.