From: Zackery Spytz Date: Fri, 12 Oct 2018 05:54:03 +0000 (-0600) Subject: Fix an incorrect check in compiler_try_except(). (GH-9810) X-Git-Tag: v3.8.0a1~793 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53ebf4b0709f431b7262aa5daccef7eafde7383e;p=python Fix an incorrect check in compiler_try_except(). (GH-9810) --- diff --git a/Python/compile.c b/Python/compile.c index 096b762f36..78b7baf323 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2738,8 +2738,9 @@ compiler_try_except(struct compiler *c, stmt_ty s) cleanup_end = compiler_new_block(c); cleanup_body = compiler_new_block(c); - if (!(cleanup_end || cleanup_body)) + if (cleanup_end == NULL || cleanup_body == NULL) { return 0; + } compiler_nameop(c, handler->v.ExceptHandler.name, Store); ADDOP(c, POP_TOP);