From 33986465bde2a2188537c4ef6cdb6055e348f31f Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Tue, 14 Apr 2020 21:40:41 +0100 Subject: bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525) --- Python/ast_opt.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v0.12