]> granicus.if.org Git - neomutt/commitdiff
imap: ensure account flags are zero'ed
authorMehdi Abaakouk <sileht@sileht.net>
Thu, 15 Nov 2018 06:56:48 +0000 (07:56 +0100)
committerMehdi Abaakouk <sileht@sileht.net>
Thu, 15 Nov 2018 07:03:07 +0000 (08:03 +0100)
imap/util.c

index ff90efe8d04c9177db73de4e052d8f358aff2a57..c979d76307beb0a39cbec0f6545cf12ecb23a845 100644 (file)
@@ -581,6 +581,7 @@ int imap_parse_path2(const char *path, struct ConnAccount *account, char *mailbo
   }
 
   /* Defaults */
+  memset(account, 0, sizeof(struct ConnAccount));
   account->port = ImapPort;
   account->type = MUTT_ACCT_TYPE_IMAP;