bintrans: Fix uninitialized variable.

`prev` may be used uninitialized if `body` starts with a newline.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	bapt, emaste
Differential Revision:	https://reviews.freebsd.org/D43534
This commit is contained in:
Dag-Erling Smørgrav 2024-02-01 14:10:37 +01:00
parent 5cb28f7979
commit bce34cba07

View file

@ -90,9 +90,9 @@ decode_quoted_printable(const char *body, FILE *fpo)
static void
encode_quoted_printable(const char *body, FILE *fpo)
{
char prev;
const char *end = body + strlen(body);
size_t linelen = 0;
char prev = '\0';
while (*body != '\0') {
if (linelen == 75) {