diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-06-30 14:30:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 14:30:12 (GMT) |
commit | 48a739ec106dffabe89d67e79736c7dcf2f8f4a6 (patch) | |
tree | 56bf60d0c0f126379afcf86d33121a0b20652e7f /Python/compile.c | |
parent | 20b8c9eee0978b8f621293d5dbf2d574d9b83d1b (diff) | |
download | cpython-48a739ec106dffabe89d67e79736c7dcf2f8f4a6.zip cpython-48a739ec106dffabe89d67e79736c7dcf2f8f4a6.tar.gz cpython-48a739ec106dffabe89d67e79736c7dcf2f8f4a6.tar.bz2 |
gh-94332: make it safe to call assemble_free when assemble_init has not been called (GH-94389) (GH-94442)
(cherry picked from commit be82d26570343dafc8a89be5a1a0e2f58d51a904)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 6d800b2..70a754b 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -8299,6 +8299,7 @@ assemble(struct compiler *c, int addNone) int j, nblocks; PyCodeObject *co = NULL; PyObject *consts = NULL; + memset(&a, 0, sizeof(struct assembler)); /* Make sure every block that falls off the end returns None. */ if (!c->u->u_curblock->b_return) { |