mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 03:06:48 +00:00
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:
parent
5cb28f7979
commit
bce34cba07
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue