[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 c838e21fda)

Co-authored-by: Lauta <ljfp@ljfp.xyz>
This commit is contained in:
Miss Islington (bot) 2025-05-11 10:44:22 +02:00 committed by GitHub
parent f7d7248a03
commit 98ef4837ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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;
}