From: Timo Sirainen Date: Tue, 21 Oct 2003 13:50:09 +0000 (+0300) Subject: assert X-Git-Tag: 1.1.alpha1~4270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fb1e3e2349c9940732b5bb77a2a4053b8f72a4f;p=thirdparty%2Fdovecot%2Fcore.git assert --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/index-mail-headers.c b/src/lib-storage/index/index-mail-headers.c index 184a960626..e5ebbfcb0c 100644 --- a/src/lib-storage/index/index-mail-headers.c +++ b/src/lib-storage/index/index-mail-headers.c @@ -94,6 +94,8 @@ cached_header_add(struct index_mail *mail, const char *name) struct cached_header *hdr; unsigned int idx; + i_assert(*name != '\0'); + hdr = cached_header_find(mail, name, &idx); if (hdr != NULL) return hdr;