mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525)
This commit is contained in:
parent
43aeefa419
commit
33986465bd
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue