commit | 33986465bde2a2188537c4ef6cdb6055e348f31f | [log] [tgz] |
---|---|---|
author | Pablo Galindo <Pablogsal@gmail.com> | Tue Apr 14 21:40:41 2020 +0100 |
committer | GitHub <noreply@github.com> | Tue Apr 14 21:40:41 2020 +0100 |
tree | d3b22685db89da12e991a160f154d259703e44b8 | |
parent | 43aeefa41915e4d3b0e68bbd4268c1c378a72dce [diff] |
bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525)
diff --git a/Python/ast_opt.c b/Python/ast_opt.c index 1393c34..1766321 100644 --- a/Python/ast_opt.c +++ b/Python/ast_opt.c
@@ -19,6 +19,7 @@ return 0; } node->kind = Constant_kind; + node->v.Constant.kind = NULL; node->v.Constant.value = val; return 1; }