Skip to content

Commit

Permalink
doveadm dump: Allow doveadm_cmd_dump.test() to be NULL
Browse files Browse the repository at this point in the history
This means that there's no auto-detection for the dump type.
  • Loading branch information
sirainen authored and villesavolainen committed Jan 3, 2018
1 parent 7560145 commit ee984a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doveadm/doveadm-dump.c
Expand Up @@ -33,7 +33,7 @@ dump_find_test(const char *path)
const struct doveadm_cmd_dump *const *dumpp;

array_foreach(&dumps, dumpp) {
if ((*dumpp)->test(path))
if ((*dumpp)->test != NULL && (*dumpp)->test(path))
return *dumpp;
}
return NULL;
Expand Down

0 comments on commit ee984a3

Please sign in to comment.