From: Pablo Galindo Date: Tue, 14 Apr 2020 20:40:41 +0000 (+0100) Subject: bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525) X-Git-Tag: v3.9.0a6~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33986465bde2a2188537c4ef6cdb6055e348f31f;p=thirdparty%2FPython%2Fcpython.git 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 1393c3473bf5..1766321a11a5 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; }