tInitialize b64/bufsiz value for proper getline() handling - scribo - Email-based phlog generator
 (HTM) git clone git://git.z3bra.org/scribo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 14e99223e1d8bb592c4622a27ca14ddc0ce082ce
 (DIR) parent a96f19a81d0a2741adbd310e0535cf149b7dd8d9
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue,  8 Sep 2020 17:59:53 +0200
       
       Initialize b64/bufsiz value for proper getline() handling
       
       Diffstat:
         M scribo.c                            |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/scribo.c b/scribo.c
       t@@ -190,6 +190,9 @@ write_b64(FILE *in, FILE *out)
                ssize_t len;
                char *msg, *b64;
        
       +        b64 = NULL;
       +        bufsiz = 0;
       +
                while ((len = getline(&b64, &bufsiz, in)) > 0);
        
                len = base64_unfold(b64, bufsiz);