]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525)
authorPablo Galindo <Pablogsal@gmail.com>
Tue, 14 Apr 2020 20:40:41 +0000 (21:40 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2020 20:40:41 +0000 (21:40 +0100)
Python/ast_opt.c

index 1393c3473bf543b2771647bc29ca5424e4168328..1766321a11a5b05491ab28b7fbc60688c22b332a 100644 (file)
@@ -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;
 }