bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525)

This commit is contained in:
Pablo Galindo 2020-04-14 21:40:41 +01:00 committed by GitHub
parent 43aeefa419
commit 33986465bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View 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;
}