Skip to content

Commit

Permalink
bpo-40502: Initialize n->n_col_offset (GH-19988)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored May 8, 2020
1 parent 81a5fc3 commit d10091a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Initialize ``n->n_col_offset``.
(Patch by Joannah Nanjekye)
1 change: 1 addition & 0 deletions Parser/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d10091a

Please sign in to comment.