diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-04-14 20:40:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 20:40:41 (GMT) |
commit | 33986465bde2a2188537c4ef6cdb6055e348f31f (patch) | |
tree | d3b22685db89da12e991a160f154d259703e44b8 /Python | |
parent | 43aeefa41915e4d3b0e68bbd4268c1c378a72dce (diff) | |
download | cpython-33986465bde2a2188537c4ef6cdb6055e348f31f.zip cpython-33986465bde2a2188537c4ef6cdb6055e348f31f.tar.gz cpython-33986465bde2a2188537c4ef6cdb6055e348f31f.tar.bz2 |
bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast_opt.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ make_const(expr_ty node, PyObject *val, PyArena *arena) return 0; } node->kind = Constant_kind; + node->v.Constant.kind = NULL; node->v.Constant.value = val; return 1; } |