Browse Source

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

pull/19529/head
Pablo Galindo 6 years ago
committed by GitHub
parent
commit
33986465bd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Python/ast_opt.c

1
Python/ast_opt.c

@ -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…
Cancel
Save