From: Neal Norwitz Date: Thu, 6 Apr 2006 08:43:16 +0000 (+0000) Subject: This change shouldn't have any functional effect. Coverity was X-Git-Tag: v2.5a2~408 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b43199822b7ab71494835936c0bb5d7ed7e63b65;p=thirdparty%2FPython%2Fcpython.git This change shouldn't have any functional effect. Coverity was complaining because it seemed like parameters_iter could be NULL. --- diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index d2b45a006452..b9ed56af00df 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -419,7 +419,7 @@ PyObject* _query_execute(Cursor* self, int multiple, PyObject* args) } else { /* sequence */ parameters_iter = PyObject_GetIter(second_argument); - if (PyErr_Occurred()) + if (!parameters_iter) { return NULL; }