aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spool2dir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/spool2dir.c b/spool2dir.c
index 2d9691b..59293d8 100644
--- a/spool2dir.c
+++ b/spool2dir.c
@@ -131,7 +131,7 @@ static int backend_handle_mail(struct mailbox_transaction_context *t,
{
struct istream *mailstream;
struct ostream *outstream;
- int ret;
+ int ret = -1;
const char *dest, *buf;
const unsigned char *beginning;
size_t size;
@@ -198,7 +198,6 @@ static int backend_handle_mail(struct mailbox_transaction_context *t,
if (i_stream_read_data(mailstream, &beginning, &size, 5) < 0 ||
size < 5) {
- ret = -1;
mail_storage_set_error(t->box->storage,
ME(NOTPOSSIBLE)
"Failed to read mail beginning");
@@ -210,7 +209,6 @@ static int backend_handle_mail(struct mailbox_transaction_context *t,
i_stream_read_next_line(mailstream);
if (o_stream_send_istream(outstream, mailstream) < 0) {
- ret = -1;
mail_storage_set_error(t->box->storage,
ME(NOTPOSSIBLE)
"Failed to copy to spool file");