aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/stackrefs.c
diff options
context:
space:
mode:
authorLauta <ljfp@ljfp.xyz>2025-05-11 10:16:28 +0200
committerGitHub <noreply@github.com>2025-05-11 10:16:28 +0200
commitc838e21fda21bb3ff91f586374e0da776c1c567b (patch)
tree4d1e5d5b5f1bb3c7a593bfe59d3decd00944e6ae /Python/stackrefs.c
parentf91127ae1a8bb233aa23b449e87da6df763f85b2 (diff)
downloadcpython-c838e21fda21bb3ff91f586374e0da776c1c567b.tar.gz
cpython-c838e21fda21bb3ff91f586374e0da776c1c567b.zip
gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (#133681)
Diffstat (limited to 'Python/stackrefs.c')
-rw-r--r--Python/stackrefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/stackrefs.c b/Python/stackrefs.c
index 979a6b1c628..69d4e8b9431 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;
}