changeset 9925:9287d59dbf69 HEAD

doveconf: Crashfix
author Timo Sirainen <tss@iki.fi>
date Thu, 10 Sep 2009 20:09:16 -0400
parents 281ea23515ce
children 2f2e1a3ae633
files src/config/doveconf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/doveconf.c	Thu Sep 10 19:13:19 2009 -0400
+++ b/src/config/doveconf.c	Thu Sep 10 20:09:16 2009 -0400
@@ -137,7 +137,8 @@
 			}
 		}
 		skip_len = prefix_idx == -1U ? 0 : strlen(prefixes[prefix_idx]);
-		i_assert(strncmp(prefixes[prefix_idx], strings[i], skip_len) == 0);
+		i_assert(skip_len == 0 ||
+			 strncmp(prefixes[prefix_idx], strings[i], skip_len) == 0);
 		o_stream_send(output, ident_str, indent*2);
 		key = strings[i] + skip_len;
 		value = strchr(key, '=');