diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-24 21:02:50 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-24 21:02:50 +0200 |
commit | 4d29279eaba660ef0ed9ae99e0ea2851bdd6ce2c (patch) | |
tree | 08e82dc678b5556e76c6653edbb59f1201961946 /Python/ast.c | |
parent | 6c69bbf057f21199869b1ca94c88d4701799e2c3 (diff) | |
parent | 74940ece1ca56ac6e4c6153dc038f71436b7d0c4 (diff) | |
download | cpython-4d29279eaba660ef0ed9ae99e0ea2851bdd6ce2c.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 f1c2347ebc..a72ba2035c 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -528,11 +528,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; } |