bpo-40502: Initialize n->n_col_offset (GH-19988)

* initialize n->n_col_offset

* 📜🤖 Added by blurb_it.

* Move initialization

Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
Joannah Nanjekye 2020-05-08 17:58:28 -03:00 committed by GitHub
parent 81a5fc38e8
commit d10091aa17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1,2 @@
Initialize ``n->n_col_offset``.
(Patch by Joannah Nanjekye)

View file

@ -14,6 +14,7 @@ PyNode_New(int type)
n->n_str = NULL;
n->n_lineno = 0;
n->n_end_lineno = 0;
n->n_col_offset = 0;
n->n_end_col_offset = -1;
n->n_nchildren = 0;
n->n_child = NULL;