[Python-checkins] gh-87092: avoid gcc warning on uninitialized struct field in assemble… (gh-105243)

corona10 webhook-mailer at python.org
Fri Jun 2 12:01:02 EDT 2023


https://github.com/python/cpython/commit/2f5c1ae080aa7161e6262f9748d9ceb3ecd1f839
commit: 2f5c1ae080aa7161e6262f9748d9ceb3ecd1f839
branch: main
author: Dong-hee Na <donghee.na at python.org>
committer: corona10 <donghee.na92 at gmail.com>
date: 2023-06-02T16:00:50Z
summary:

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)

files:
M Python/assemble.c

diff --git a/Python/assemble.c b/Python/assemble.c
index 46a21809d9c0..24ecc717eff1 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++) {



More information about the Python-checkins mailing list