mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525)
This commit is contained in:
parent
43aeefa419
commit
33986465bd
@ -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…
Reference in New Issue
Block a user