From: Timo Sirainen Date: Fri, 22 Dec 2017 13:11:45 +0000 (+0200) Subject: doveadm dump: Allow doveadm_cmd_dump.test() to be NULL X-Git-Tag: 2.3.1~426 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=baf3b9be91943c68436895bb5849a652cc19ab66;p=thirdparty%2Fdovecot%2Fcore.git doveadm dump: Allow doveadm_cmd_dump.test() to be NULL This means that there's no auto-detection for the dump type. --- 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;