[Python-checkins] cpython: check correct variable for error
benjamin.peterson
python-checkins at python.org
Fri May 4 07:13:14 CEST 2012
http://hg.python.org/cpython/rev/7d29b63bd854
changeset: 76742:7d29b63bd854
user: Benjamin Peterson <benjamin at python.org>
date: Fri May 04 01:10:59 2012 -0400
summary:
check correct variable for error
files:
Modules/posixmodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3584,7 +3584,7 @@
if ((*s == -1) && PyErr_Occurred())
goto exit;
*ns = PyLong_AsLong(PyTuple_GET_ITEM(divmod, 1));
- if ((*s == -1) && PyErr_Occurred())
+ if ((*ns == -1) && PyErr_Occurred())
goto exit;
result = 1;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list