]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-87092: avoid gcc warning on uninitialized struct field in assemble… (gh-105243)
authorDong-hee Na <donghee.na@python.org>
Fri, 2 Jun 2023 16:00:50 +0000 (01:00 +0900)
committerGitHub <noreply@github.com>
Fri, 2 Jun 2023 16:00:50 +0000 (16:00 +0000)
gh-87092: avoid gcc warning on uninitialized struct field in assemble.c (part2)

Python/assemble.c

index 46a21809d9c094d5c19eddef00adb006f80db1b3..24ecc717eff1ce5c1f2c15ab5e0a3bf4d6b59a6c 100644 (file)
@@ -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++) {