Skip to content

Commit

Permalink
bintrans: fix maybe-uninitialized error
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 committed Nov 12, 2023
1 parent 5598161 commit ad16575
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions patches/src.freebsd.patch
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,17 @@
{

stack_dup(&bmachine.stack);
--- src.orig/bintrans/qp.c
+++ src.freebsd/bintrans/qp.c
@@ -90,7 +90,7 @@
static void
encode_quoted_printable(const char *body, FILE *fpo)
{
- char prev;
+ char prev = 0;
const char *end = body + strlen(body);
size_t linelen = 0;

--- src.orig/bintrans/uudecode.c
+++ src.freebsd/bintrans/uudecode.c
@@ -58,6 +58,7 @@
Expand Down
2 changes: 1 addition & 1 deletion src.freebsd/bintrans/qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ decode_quoted_printable(const char *body, FILE *fpo)
static void
encode_quoted_printable(const char *body, FILE *fpo)
{
char prev;
char prev = 0;
const char *end = body + strlen(body);
size_t linelen = 0;

Expand Down

0 comments on commit ad16575

Please sign in to comment.