]> granicus.if.org Git - neomutt/commitdiff
initialise variables
authorRichard Russon <rich@flatcap.org>
Sun, 25 Mar 2018 02:30:11 +0000 (03:30 +0100)
committerRichard Russon <rich@flatcap.org>
Wed, 28 Mar 2018 02:18:08 +0000 (03:18 +0100)
scan-build warns that these variables may not get set elsewhere

imap/auth_sasl.c
mutt/rfc2047.c

index 0b18d0f27316d2de7b099d17771bfa91c5f109c6..624f6e87c8d6dc465af7d3d9e617b3d0cfc1836b 100644 (file)
@@ -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)
index 17d356032c5c317c55b4705354910df38ccc5c3a..e94d365a192041fb57757879c081b9c3fc51d2e3 100644 (file)
@@ -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";