]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (#133681)
authorLauta <ljfp@ljfp.xyz>
Sun, 11 May 2025 08:16:28 +0000 (10:16 +0200)
committerGitHub <noreply@github.com>
Sun, 11 May 2025 08:16:28 +0000 (10:16 +0200)
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;
 }