summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-04-14 21:40:41 +0100
committerGitHub <noreply@github.com>2020-04-14 21:40:41 +0100
commit33986465bde2a2188537c4ef6cdb6055e348f31f (patch)
treed3b22685db89da12e991a160f154d259703e44b8 /Python
parent43aeefa41915e4d3b0e68bbd4268c1c378a72dce (diff)
downloadcpython-git-33986465bde2a2188537c4ef6cdb6055e348f31f.tar.gz
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 1393c3473b..1766321a11 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;
}