Checks for pointers should be explicit, i.e., (ptr != NULL)

This commit is contained in:
Federico Di Gregorio 2010-04-05 11:27:34 +02:00
parent cc37fd1ea9
commit 3d2c315049

View File

@ -658,7 +658,7 @@ _psyco_curs_prefetch(cursorObject *self)
/* check if there is an asynchronous query in progess and block until data /* check if there is an asynchronous query in progess and block until data
is read from it */ is read from it */
if (self->conn->async_cursor) { if (self->conn->async_cursor != NULL) {
/* first check if it's the right cursor */ /* first check if it's the right cursor */
if (self->conn->async_cursor != (PyObject*)self) { if (self->conn->async_cursor != (PyObject*)self) {
psyco_set_error(ProgrammingError, (PyObject*)self, psyco_set_error(ProgrammingError, (PyObject*)self,