[PATCH 2/4] jscript: Initialize variable flags in new_variable_declaration().

Paul Gofman pgofman at codeweavers.com
Mon Jun 21 07:11:37 CDT 2021


Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
 dlls/jscript/parser.y | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/jscript/parser.y b/dlls/jscript/parser.y
index 5cc088d017e..5c7f48fa23f 100644
--- a/dlls/jscript/parser.y
+++ b/dlls/jscript/parser.y
@@ -1149,6 +1149,8 @@ static variable_declaration_t *new_variable_declaration(parser_ctx_t *ctx, const
     ret->expr = expr;
     ret->next = NULL;
     ret->global_next = NULL;
+    ret->block_scope = FALSE;
+    ret->constant = FALSE;
 
     return ret;
 }
-- 
2.31.1




More information about the wine-devel mailing list