summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-11-03 23:35:43 +0100
committerJo-Philipp Wich <jo@mein.io>2020-11-04 00:02:31 +0100
commite1b338ac200a7a8e1d156fbfd5517f562aaa9277 (patch)
treeb38eae1ced11655a079a41270c2c19cdf9962c67
parent01deebeae5f615aff8fd8a3bb35280e60e2082ad (diff)
parser: zero-initialize expected token bitfield
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.y b/parser.y
index aea7ab3..360a1be 100644
--- a/parser.y
+++ b/parser.y
@@ -94,7 +94,7 @@ ut_add_else(struct ut_state *s, uint32_t off, uint32_t add)
}
%syntax_error {
- uint64_t tokens[(__T_MAX + 63) & -64];
+ uint64_t tokens[(__T_MAX + 63) & -64] = {};
int i, max_token = 0;
for (i = 0; i < __T_MAX; i++) {