Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3398646

Browse files
authored
bpo-39522: Always initialise kind attribute in constant ast nodes (GH-19525)
1 parent 43aeefa commit 3398646

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/ast_opt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ make_const(expr_ty node, PyObject *val, PyArena *arena)
1919
return 0;
2020
}
2121
node->kind = Constant_kind;
22+
node->v.Constant.kind = NULL;
2223
node->v.Constant.value = val;
2324
return 1;
2425
}

0 commit comments

Comments
 (0)