summaryrefslogtreecommitdiffstats
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-01-16 21:56:22 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-01-16 21:56:22 (GMT)
commit8363f77795503e5352d983be844f156f4f495458 (patch)
tree70a902116a03842dd61513e94d6c589859459da2 /Python/symtable.c
parente0ed2d75c8bce7f0fc76c55c957052aa8a0756f2 (diff)
downloadcpython-8363f77795503e5352d983be844f156f4f495458.zip
cpython-8363f77795503e5352d983be844f156f4f495458.tar.gz
cpython-8363f77795503e5352d983be844f156f4f495458.tar.bz2
fix error check
Diffstat (limited to 'Python/symtable.c')
-rw-r--r--Python/symtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index 644d9c5..99f4191 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -468,7 +468,7 @@ analyze_cells(PyObject *scope, PyObject *free)
*/
if (PyDict_SetItem(scope, name, w) < 0)
goto error;
- if (!PyDict_DelItem(free, name) < 0)
+ if (PyDict_DelItem(free, name) < 0)
goto error;
}
success = 1;