From: Richard Russon Date: Sun, 25 Mar 2018 02:30:11 +0000 (+0100) Subject: initialise variables X-Git-Tag: neomutt-20180512~77^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4c00321ce19c76e11def21dfe52548d0ce9bc47;p=neomutt initialise variables scan-build warns that these variables may not get set elsewhere --- diff --git a/imap/auth_sasl.c b/imap/auth_sasl.c index 0b18d0f27..624f6e87c 100644 --- a/imap/auth_sasl.c +++ b/imap/auth_sasl.c @@ -57,7 +57,7 @@ enum ImapAuthRes imap_auth_sasl(struct ImapData *idata, const char *method) size_t bufsize = 0; const char *mech = NULL; const char *pc = NULL; - unsigned int len, olen; + unsigned int len = 0, olen; bool client_start; if (mutt_sasl_client_new(idata->conn, &saslconn) < 0) diff --git a/mutt/rfc2047.c b/mutt/rfc2047.c index 17d356032..e94d365a1 100644 --- a/mutt/rfc2047.c +++ b/mutt/rfc2047.c @@ -431,7 +431,7 @@ static int rfc2047_encode(const char *d, size_t dlen, int col, const char *fromc char *u = NULL, *t0 = NULL, *t1 = NULL, *t = NULL; char *s0 = NULL, *s1 = NULL; size_t ulen, r, wlen = 0; - encoder_t encoder; + encoder_t encoder = NULL; char *tocode1 = NULL; const char *tocode = NULL; char *icode = "utf-8";