summaryrefslogtreecommitdiffstats
path: root/grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch
blob: 02e06315dffc96454f8168de46e49d1cbb8f9b9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/lib/regcomp.c	2020-11-24 17:06:08.159223858 +0000
+++ b/lib/regcomp.c	2020-11-24 17:06:15.630253923 +0000
@@ -3808,11 +3808,7 @@
 create_tree (re_dfa_t *dfa, bin_tree_t *left, bin_tree_t *right,
 	     re_token_type_t type)
 {
-  re_token_t t;
-#if defined GCC_LINT || defined lint
-  memset (&t, 0, sizeof t);
-#endif
-  t.type = type;
+  re_token_t t = { .type = type };
   return create_token_tree (dfa, left, right, &t);
 }