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.2.34~169 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee984a3c95b6b4f7a155236d0eacdf498cd2d38a;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 ea70f94f0e..1312b8bf60 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;