summaryrefslogtreecommitdiff
path: root/libmailutils
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-01-15 15:44:06 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2011-01-15 15:50:00 +0200
commitec0d5f94acb17be7357a6a819a706189b02cf2da (patch)
treea391927a6edf01c906f8b69c46ce677f0308b021 /libmailutils
parent18de516a00c01a4262310f09a1ac8586e97f8a1a (diff)
downloadmailutils-ec0d5f94acb17be7357a6a819a706189b02cf2da.tar.gz
mailutils-ec0d5f94acb17be7357a6a819a706189b02cf2da.tar.bz2
libmailutils: bugfix
* libmailutils/mime/attachment.c (_attachment_setup): Remove improper initialization of msg. (mu_message_encapsulate): Initialize info->msg.
Diffstat (limited to 'libmailutils')
-rw-r--r--libmailutils/mime/attachment.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libmailutils/mime/attachment.c b/libmailutils/mime/attachment.c
index c302b5877..d8207ec34 100644
--- a/libmailutils/mime/attachment.c
+++ b/libmailutils/mime/attachment.c
@@ -208,9 +208,6 @@ _attachment_setup (mu_mime_io_buffer_t *pinfo, mu_message_t msg,
if ((ret = mu_message_get_body (msg, &body)) != 0 ||
(ret = mu_body_get_streamref (body, &stream)) != 0)
return ret;
- ret = mu_stream_seek (stream, 0, SEEK_SET, NULL);
- if (ret)
- return ret;
*pstream = stream;
if (*pinfo)
{
@@ -224,7 +221,6 @@ _attachment_setup (mu_mime_io_buffer_t *pinfo, mu_message_t msg,
return ret;
}
- info->msg = msg;
*pinfo = info;
return 0;
}
@@ -328,7 +324,7 @@ mu_message_encapsulate (mu_message_t msg, mu_message_t *newmsg,
mu_message_destroy (&tmsg, NULL);
return ret;
}
-
+ info->msg = msg;
if (ret == 0 && (ret = mu_message_get_streamref (msg, &istream)) == 0)
{
mu_stream_seek (istream, 0, MU_SEEK_SET, NULL);

Return to:

Send suggestions and report system problems to the System administrator.