summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-06 08:43:16 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-06 08:43:16 (GMT)
commitb43199822b7ab71494835936c0bb5d7ed7e63b65 (patch)
treebf49e86c21a39ad2321910e9572288fdfd361687 /Modules
parentd126200aeb12819247e966ce20e1439062069866 (diff)
downloadcpython-b43199822b7ab71494835936c0bb5d7ed7e63b65.zip
cpython-b43199822b7ab71494835936c0bb5d7ed7e63b65.tar.gz
cpython-b43199822b7ab71494835936c0bb5d7ed7e63b65.tar.bz2
This change shouldn't have any functional effect. Coverity was
complaining because it seemed like parameters_iter could be NULL.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index d2b45a0..b9ed56a 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;
}