diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-03-13 01:13:01 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-03-13 01:13:01 +0200 |
commit | 735a362267d81a625fe2ddf31a8ce617e6bfacf5 (patch) | |
tree | 6eb3df0c5e8d549aa7a1a9df1aeaeb5934debf1b | |
parent | e1f5e01f24e9b102f0f806b3af9cb47a7f4daca7 (diff) | |
download | mailutils-735a362267d81a625fe2ddf31a8ce617e6bfacf5.tar.gz mailutils-735a362267d81a625fe2ddf31a8ce617e6bfacf5.tar.bz2 |
Bugfix.
* mailbox/cfg_parser.y (mu_cfg_tree_union): Fix coredump
on b->nodes==NULL.
-rw-r--r-- | mailbox/cfg_parser.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mailbox/cfg_parser.y b/mailbox/cfg_parser.y index bb32d463c..6cbf4af0b 100644 --- a/mailbox/cfg_parser.y +++ b/mailbox/cfg_parser.y @@ -506,8 +506,11 @@ mu_cfg_tree_union (mu_cfg_tree_t **pa, mu_cfg_tree_t **pb) return rc; /* Link node lists */ - mu_list_append_list (a->nodes, b->nodes); - mu_list_destroy (&b->nodes); + if (b->nodes) + { + mu_list_append_list (a->nodes, b->nodes); + mu_list_destroy (&b->nodes); + } mu_debug_destroy (&b->debug, mu_debug_get_owner (b->debug)); free (b); |