mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
gnulib/regcomp: Fix uninitialized re_token
This issue has been fixed in the latest version of gnulib, so to maintain consistency, I've backported that change rather than doing something different. Fixes: CID 73828 Signed-off-by: Darren Kenny <darren.kenny@oracle.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
0b7f347638
commit
03477085f9
3 files changed
+18
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user