commit | 35a8f0dee5252555d0749e3318bb65cb3442828d | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri May 04 01:10:59 2012 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Fri May 04 01:10:59 2012 -0400 |
tree | 840e4f058cd252aea4c6f7d94971ecccfdedb06e | |
parent | d0dba6eee8a2876a5457695813fe85b227485395 [diff] [blame] |
check correct variable for error
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 @@ 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;