diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-24 21:02:17 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-24 21:02:17 +0200 |
commit | 74940ece1ca56ac6e4c6153dc038f71436b7d0c4 (patch) | |
tree | 057febe07a3372cd078a6aae5937b46a2dd30a6e /Python/ast.c | |
parent | 49913ad491dd7d1aba86b727593a9cc73ba05ef7 (diff) | |
download | cpython-74940ece1ca56ac6e4c6153dc038f71436b7d0c4.tar.gz |
Fix potential NULL pointer dereferencing in ast module
CID 719690
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 1b5fa6ccc2..9a0b0649db 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; } |