]> granicus.if.org Git - neomutt/commitdiff
initialise all struct members
authorRichard Russon <rich@flatcap.org>
Thu, 13 Jun 2019 10:19:33 +0000 (11:19 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 15 Jun 2019 20:32:31 +0000 (21:32 +0100)
init.h
pattern.c

diff --git a/init.h b/init.h
index 0dc44eb00b6b6c849cff64a9d172810c24e340fb..6aa997930a041cbae651b125d74fad587e760267 100644 (file)
--- a/init.h
+++ b/init.h
@@ -4819,7 +4819,7 @@ struct ConfigDef MuttVars[] = {
   { "xterm_set_titles",       DT_SYNONYM, NULL, IP "ts_enabled",               },
   { "xterm_title",            DT_SYNONYM, NULL, IP "ts_status_format",         },
 
-  { NULL, 0, 0, 0, 0 },
+  { NULL, 0, NULL, 0, 0, NULL },
 };
 
 /* functions used to parse commands in a rc file */
index 64eafecf903a2d432e6230c04301e6bf1bb85faa..66753a08466efb75a9b496fabbd55e58d6812c9f 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -190,11 +190,11 @@ struct PatternFlags
  * This array, will also contain the compiled regexes.
  */
 static struct RangeRegex range_regexes[] = {
-  [RANGE_K_REL]  = { RANGE_REL_RX,  1, 3, 0 },
-  [RANGE_K_ABS]  = { RANGE_ABS_RX,  1, 3, 0 },
-  [RANGE_K_LT]   = { RANGE_LT_RX,   1, 2, 0 },
-  [RANGE_K_GT]   = { RANGE_GT_RX,   2, 1, 0 },
-  [RANGE_K_BARE] = { RANGE_BARE_RX, 1, 1, 0 },
+  [RANGE_K_REL]  = { RANGE_REL_RX,  1, 3, 0, { 0 } },
+  [RANGE_K_ABS]  = { RANGE_ABS_RX,  1, 3, 0, { 0 } },
+  [RANGE_K_LT]   = { RANGE_LT_RX,   1, 2, 0, { 0 } },
+  [RANGE_K_GT]   = { RANGE_GT_RX,   2, 1, 0, { 0 } },
+  [RANGE_K_BARE] = { RANGE_BARE_RX, 1, 1, 0, { 0 } },
 };
 // clang-format on