From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 11 May 2025 08:44:22 +0000 (+0200) Subject: [3.14] gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-13368... X-Git-Tag: v3.14.0b2~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98ef4837ecb1f68af5f2ab073e9451bdb3b57af0;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-133681) (#133872) gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-133681) (cherry picked from commit c838e21fda21bb3ff91f586374e0da776c1c567b) Co-authored-by: Lauta --- diff --git a/Python/stackrefs.c b/Python/stackrefs.c index 979a6b1c6282..69d4e8b94315 100644 --- a/Python/stackrefs.c +++ b/Python/stackrefs.c @@ -1,4 +1,3 @@ - #include "Python.h" #include "pycore_object.h" @@ -34,6 +33,7 @@ make_table_entry(PyObject *obj, const char *filename, int linenumber) result->filename = filename; result->linenumber = linenumber; result->filename_borrow = NULL; + result->linenumber_borrow = 0; return result; }