From 8fe0b13a23c5e98d090f94399581fe2c7b5239ed Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 22 Dec 2017 15:11:45 +0200 Subject: [PATCH] doveadm dump: Allow doveadm_cmd_dump.test() to be NULL This means that there's no auto-detection for the dump type. --- src/doveadm/doveadm-dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doveadm/doveadm-dump.c b/src/doveadm/doveadm-dump.c index ff5774bf47..b5dbdebac3 100644 --- a/src/doveadm/doveadm-dump.c +++ b/src/doveadm/doveadm-dump.c @@ -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;