summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-05-04 05:10:59 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-05-04 05:10:59 (GMT)
commit35a8f0dee5252555d0749e3318bb65cb3442828d (patch)
tree840e4f058cd252aea4c6f7d94971ecccfdedb06e /Modules/posixmodule.c
parentd0dba6eee8a2876a5457695813fe85b227485395 (diff)
downloadcpython-35a8f0dee5252555d0749e3318bb65cb3442828d.zip
cpython-35a8f0dee5252555d0749e3318bb65cb3442828d.tar.gz
cpython-35a8f0dee5252555d0749e3318bb65cb3442828d.tar.bz2
check correct variable for error
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 09c430f..7a02b75 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3584,7 +3584,7 @@ split_py_long_to_s_and_ns(PyObject *py_long, time_t *s, long *ns)
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;