summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-04-14 20:40:41 (GMT)
committerGitHub <noreply@github.com>2020-04-14 20:40:41 (GMT)
commit33986465bde2a2188537c4ef6cdb6055e348f31f (patch)
treed3b22685db89da12e991a160f154d259703e44b8 /Python
parent43aeefa41915e4d3b0e68bbd4268c1c378a72dce (diff)
downloadcpython-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.c1
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;
}