Skip to content

Commit

Permalink
bpo-39522: Always initialise kind attribute in constant ast nodes (GH…
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal committed Apr 14, 2020
1 parent 43aeefa commit 3398646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/ast_opt.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3398646

Please sign in to comment.