summaryrefslogtreecommitdiffstats
path: root/grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch
diff options
context:
space:
mode:
Diffstat (limited to 'grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch')
-rw-r--r--grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch b/grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch
new file mode 100644
index 0000000..02e0631
--- /dev/null
+++ b/grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch
@@ -0,0 +1,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);
+ }
+