[dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c,1.16,1.17

cras at procontrol.fi cras at procontrol.fi
Tue Oct 21 17:50:11 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv12529

Modified Files:
	index-mail-headers.c 
Log Message:
assert


Index: index-mail-headers.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-mail-headers.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- index-mail-headers.c	21 Oct 2003 03:35:43 -0000	1.16
+++ index-mail-headers.c	21 Oct 2003 13:50:09 -0000	1.17
@@ -94,6 +94,8 @@
 	struct cached_header *hdr;
 	unsigned int idx;
 
+	i_assert(*name != '\0');
+
 	hdr = cached_header_find(mail, name, &idx);
 	if (hdr != NULL)
 		return hdr;



More information about the dovecot-cvs mailing list