From: Benjamin Peterson Date: Fri, 4 May 2012 05:10:59 +0000 (-0400) Subject: check correct variable for error X-Git-Tag: v3.3.0a4~294 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35a8f0dee5252555d0749e3318bb65cb3442828d;p=python check correct variable for error --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 09c430fd70..7a02b758e9 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;