about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--rfc2045.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rfc2045.c b/rfc2045.c
index e5e19ff..64876ae 100644
--- a/rfc2045.c
+++ b/rfc2045.c
@@ -22,7 +22,8 @@ blaze822_mime_body(struct message *msg,
 	if (!msg->body || !msg->bodyend) {
 		*bodyo = 0;
 		*bodyleno = 0;
-		return -1;
+		*bodychunko = 0;
+		return 0;
         }
 
 	char *ct = blaze822_hdr(msg, "content-type");