From: Andrew M. Kuchling Date: Wed, 15 Jun 2005 18:48:16 +0000 (+0000) Subject: Fix check for error condition X-Git-Tag: v2.4.2c1~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5672467b2d7b707b2157a03786f3ee73de4d0ac7;p=thirdparty%2FPython%2Fcpython.git Fix check for error condition --- diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 2e14abb7797b..acff973f2a0a 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2107,7 +2107,7 @@ PyCurses_Pair_Content(PyObject *self, PyObject *args) return NULL; } - if (!pair_content(pair, &f, &b)) { + if (pair_content(pair, &f, &b)==ERR) { PyErr_SetString(PyCursesError, "Argument 1 was out of range. (1..COLOR_PAIRS-1)"); return NULL;