Skip to content
Snippets Groups Projects
Commit c4734e6a authored by Stephan Bosch's avatar Stephan Bosch
Browse files

testsuite: fixed compile warning.

parent a1ef6659
No related branches found
No related tags found
No related merge requests found
......@@ -495,14 +495,17 @@ static int cmd_test_message_print_operation_execute
}
printf("\n--MESSAGE: \n");
/* Pipe the message to the outgoing SMTP transport */
while ((ret=i_stream_read_data(input, &data, &size, 0)) > 0) {
write(1, data, size);
i_stream_skip(input, size);
ssize_t wret;
if ( (wret=write(1, data, size)) <= 0 )
break;
i_stream_skip(input, wret);
}
printf("\n--MESSAGE--\n");
return SIEVE_EXEC_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.