[dovecot-cvs] dovecot/src/lib-imap imap-bodystructure.c,1.16,1.17
cras at procontrol.fi
cras at procontrol.fi
Wed Nov 6 09:46:08 EET 2002
Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv8307
Modified Files:
imap-bodystructure.c
Log Message:
buggy check
Index: imap-bodystructure.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-bodystructure.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- imap-bodystructure.c 6 Nov 2002 07:45:08 -0000 1.16
+++ imap-bodystructure.c 6 Nov 2002 07:46:06 -0000 1.17
@@ -173,7 +173,8 @@
/* fix the name to be \0-terminated */
name = t_strndup(name, name_len);
- if (strcasecmp(name, "Content-Type") == 0 && part_data->content_type) {
+ if (strcasecmp(name, "Content-Type") == 0 &&
+ part_data->content_type == NULL) {
part_data->str = t_string_new(256);
(void)message_content_parse_header(t_strndup(value, value_len),
parse_content_type,
More information about the dovecot-cvs
mailing list