]> granicus.if.org Git - neomutt/commitdiff
initialise variables
authorRichard Russon <rich@flatcap.org>
Thu, 26 Jul 2018 08:17:13 +0000 (09:17 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 26 Jul 2018 08:17:14 +0000 (09:17 +0100)
Some compilers won't link variables-only library files unless they're
all given an explicit value.

email/email_globals.c

index 6ed965f935dc353e701ef52ee9c8b95c870d3127..1f3a18ba588eb59682dd0e13037c133a9a148aaa 100644 (file)
 #include "mutt/mutt.h"
 
 /* Config items */
-bool MarkOld;
-struct Regex *ReplyRegex;
-char *SendCharset;
-char *SpamSeparator;
-bool Weed;
+bool MarkOld = false;
+struct Regex *ReplyRegex = NULL;
+char *SendCharset = NULL;
+char *SpamSeparator = NULL;
+bool Weed = false;
 
 /* Global variables */
-struct RegexList *NoSpamList;
-struct ReplaceList *SpamList;
+struct RegexList *NoSpamList = NULL;
+struct ReplaceList *SpamList = NULL;
 struct ListHead Ignore = STAILQ_HEAD_INITIALIZER(Ignore);
 struct ListHead UnIgnore = STAILQ_HEAD_INITIALIZER(UnIgnore);