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;
|
return 0;
|
||||||
}
|
}
|
||||||
node->kind = Constant_kind;
|
node->kind = Constant_kind;
|
||||||
|
node->v.Constant.kind = NULL;
|
||||||
node->v.Constant.value = val;
|
node->v.Constant.value = val;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue