]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-13368...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 11 May 2025 08:44:22 +0000 (10:44 +0200)
committerGitHub <noreply@github.com>
Sun, 11 May 2025 08:44:22 +0000 (08:44 +0000)
gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-133681)
(cherry picked from commit c838e21fda21bb3ff91f586374e0da776c1c567b)

Co-authored-by: Lauta <ljfp@ljfp.xyz>
Python/stackrefs.c

index 979a6b1c62820a2304c7bb21c2bed012a55890ec..69d4e8b943159f5190d58263f5d872d1f76028d3 100644 (file)
@@ -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;
 }