dovecot-2.0-sslstream: lib-settings: Treat blocks with empty nam...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:58:48 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/4c9c9111e361
changeset: 10605:4c9c9111e361
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jan 29 10:10:07 2010 +0200
description:
lib-settings: Treat blocks with empty names as unique names, instead of merging them.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-settings/settings-parser.c |    2 +-

diffs (12 lines):

diff -r 25c1ed070b3c -r 4c9c9111e361 src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c	Thu Jan 28 23:14:52 2010 +0200
+++ b/src/lib-settings/settings-parser.c	Fri Jan 29 10:10:07 2010 +0200
@@ -1649,7 +1649,7 @@ settings_copy_deflist_unique(const struc
 				break;
 		}
 
-		if (j < dest_count) {
+		if (j < dest_count && **src_namep != '\0') {
 			/* merge */
 			child_src_link.set_struct = src_children[i];
 			child_src_link.change_struct = src_cchildren[i];


More information about the dovecot-cvs mailing list