Paul Gofman : jscript: Initialize variable flags in new_variable_declaration().

Alexandre Julliard julliard at winehq.org
Mon Jun 21 16:14:56 CDT 2021


Module: wine
Branch: master
Commit: 6bd291605cffa09df8fa97b61a719bab2197318f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6bd291605cffa09df8fa97b61a719bab2197318f

Author: Paul Gofman <pgofman at codeweavers.com>
Date:   Mon Jun 21 20:48:18 2021 +0300

jscript: Initialize variable flags in new_variable_declaration().

Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/jscript/parser.y | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/jscript/parser.y b/dlls/jscript/parser.y
index 3f5f93fcc0c..73c03731fd4 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;
 }




More information about the wine-cvs mailing list