From: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> Date: Fri, 8 May 2020 20:58:28 +0000 (-0300) Subject: bpo-40502: Initialize n->n_col_offset (GH-19988) X-Git-Tag: v3.9.0b1~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d10091aa171250c67a5079abfe26b8b3964ea39a;p=thirdparty%2FPython%2Fcpython.git bpo-40502: Initialize n->n_col_offset (GH-19988) * initialize n->n_col_offset * 📜🤖 Added by blurb_it. * Move initialization Co-authored-by: nanjekyejoannah Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> --- 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 index 000000000000..b0ea60234634 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-05-08-03-25-26.bpo-40502.e-VCyL.rst @@ -0,0 +1,2 @@ +Initialize ``n->n_col_offset``. +(Patch by Joannah Nanjekye) \ No newline at end of file diff --git a/Parser/node.c b/Parser/node.c index f1b70e0f6815..8789e01e9b84 100644 --- a/Parser/node.c +++ b/Parser/node.c @@ -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;