{
const unsigned char *msg;
size_t i, size, startpos, missing_cr_count;
- int ret = 0;
+ int ret;
memset(hdr, 0, sizeof(struct message_size));
if (has_nuls != NULL)
hdr->physical_size += i - startpos;
}
- if (input->stream_errno != 0)
- ret = -1;
+ ret = input->stream_errno != 0 ? -1 : 0;
i_stream_skip(input, startpos);
hdr->physical_size += startpos;
const unsigned char *msg;
size_t i, size, missing_cr_count;
bool last_cr;
- int ret = 0;
+ int ret;
memset(body, 0, sizeof(struct message_size));
if (has_nuls != NULL)
body->physical_size += i - 1;
} while (i_stream_read_data(input, &msg, &size, 1) > 0);
- if (input->stream_errno != 0)
- ret = -1;
+ ret = input->stream_errno != 0 ? -1 : 0;
i_stream_skip(input, 1);
body->physical_size++;