[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] Interesting quirk in imap4d
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] Interesting quirk in imap4d |
Date: |
Sun, 10 Jun 2012 16:38:28 +0300 |
Hi Chris,
> When I ran --config-lint --config-verbose, the last line displayed was
> 'logging {'. So I commented those out, and everything starts fine.
>
> FYI :)
Thanks for spotting this! Attached is a patch:)
Regards,
Sergey
>From b5913357069b49cbf77c1ff263460ee2e13148e9 Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <address@hidden>
Date: Sun, 10 Jun 2012 16:34:56 +0300
Subject: [PATCH] Fix in configuration reduction routines.
* libmailutils/cfg/parser.y (mu_cfg_preorder): Accept null node
lists.
---
libmailutils/cfg/parser.y | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libmailutils/cfg/parser.y b/libmailutils/cfg/parser.y
index ac69e6d..2b93136 100644
--- a/libmailutils/cfg/parser.y
+++ b/libmailutils/cfg/parser.y
@@ -655,6 +655,8 @@ _mu_cfg_preorder_recursive (void *item, void *cbdata)
int
mu_cfg_preorder (mu_list_t nodelist, struct mu_cfg_iter_closure *clos)
{
+ if (!nodelist)
+ return 0;
return mu_list_foreach (nodelist, _mu_cfg_preorder_recursive, clos);
}
--
1.7.3.2