]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
assert
authorTimo Sirainen <tss@iki.fi>
Tue, 21 Oct 2003 13:50:09 +0000 (16:50 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 21 Oct 2003 13:50:09 +0000 (16:50 +0300)
--HG--
branch : HEAD

src/lib-storage/index/index-mail-headers.c

index 184a9606263b2757b3bc42c4e8b5f4274dc6f4ce..e5ebbfcb0c5ef5708a78b413f21d748ec2d35433 100644 (file)
@@ -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;