]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40502: Initialize n->n_col_offset (GH-19988)
authorJoannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Fri, 8 May 2020 20:58:28 +0000 (17:58 -0300)
committerGitHub <noreply@github.com>
Fri, 8 May 2020 20:58:28 +0000 (17:58 -0300)
* 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>
Misc/NEWS.d/next/Core and Builtins/2020-05-08-03-25-26.bpo-40502.e-VCyL.rst [new file with mode: 0644]
Parser/node.c

diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-05-08-03-25-26.bpo-40502.e-VCyL.rst b/Misc/NEWS.d/next/Core and Builtins/2020-05-08-03-25-26.bpo-40502.e-VCyL.rst
new file mode 100644 (file)
index 0000000..b0ea602
--- /dev/null
@@ -0,0 +1,2 @@
+Initialize ``n->n_col_offset``.\r
+(Patch by Joannah Nanjekye)
\ No newline at end of file
index f1b70e0f6815be206c96b18b56baa6b6a0bf4a9f..8789e01e9b848c34303edd9cf21e15c56a052a1c 100644 (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;