summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2023-06-02 16:00:50 (GMT)
committerGitHub <noreply@github.com>2023-06-02 16:00:50 (GMT)
commit2f5c1ae080aa7161e6262f9748d9ceb3ecd1f839 (patch)
tree4606050f8380492316d0a93ae8da06a323c51f52 /Python
parenta9305b5e80e414b8b9b2bd366e96b43add662d70 (diff)
downloadcpython-2f5c1ae080aa7161e6262f9748d9ceb3ecd1f839.zip
cpython-2f5c1ae080aa7161e6262f9748d9ceb3ecd1f839.tar.gz
cpython-2f5c1ae080aa7161e6262f9748d9ceb3ecd1f839.tar.bz2
gh-87092: avoid gcc warning on uninitialized struct field in assemble… (gh-105243)
gh-87092: avoid gcc warning on uninitialized struct field in assemble.c (part2)
Diffstat (limited to 'Python')
-rw-r--r--Python/assemble.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/assemble.c b/Python/assemble.c
index 46a2180..24ecc71 100644
--- a/Python/assemble.c
+++ b/Python/assemble.c
@@ -145,6 +145,7 @@ assemble_exception_table(struct assembler *a, instr_sequence *instrs)
int ioffset = 0;
_PyCompile_ExceptHandlerInfo handler;
handler.h_offset = -1;
+ handler.h_startdepth = -1;
handler.h_preserve_lasti = -1;
int start = -1;
for (int i = 0; i < instrs->s_used; i++) {