[dovecot-cvs] dovecot/src/lib-storage mailbox-list.c,1.13,1.14

tss at dovecot.org tss at dovecot.org
Sat Mar 31 17:06:15 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv20863

Modified Files:
	mailbox-list.c 
Log Message:
assert updates



Index: mailbox-list.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mailbox-list.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- mailbox-list.c	30 Mar 2007 19:45:54 -0000	1.13
+++ mailbox-list.c	31 Mar 2007 14:06:13 -0000	1.14
@@ -88,8 +88,9 @@
 		return -1;
 	}
 
-	i_assert(*set->root_dir != '\0');
-	i_assert(*set->subscription_fname != '\0');
+	i_assert(set->root_dir == NULL || *set->root_dir != '\0');
+	i_assert(set->subscription_fname == NULL ||
+		 *set->subscription_fname != '\0');
 
 	class_p = array_idx(&mailbox_list_drivers, idx);
 	list = (*class_p)->v.alloc();



More information about the dovecot-cvs mailing list