From 72f562f719ee59b79e2fa0e2efe27591c75fde26 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 24 Jul 2013 21:02:17 +0200 Subject: Fix potential NULL pointer dereferencing in ast module CID 719690 --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ast.c b/Python/ast.c index 1b5fa6c..9a0b064 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -535,11 +535,11 @@ init_normalization(struct compiling *c) if (!c->c_normalize) return 0; c->c_normalize_args = Py_BuildValue("(sN)", "NFKC", Py_None); - PyTuple_SET_ITEM(c->c_normalize_args, 1, NULL); if (!c->c_normalize_args) { Py_CLEAR(c->c_normalize); return 0; } + PyTuple_SET_ITEM(c->c_normalize_args, 1, NULL); return 1; } -- cgit v0.12