mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 21:00:33 +03:00
Checks for pointers should be explicit, i.e., (ptr != NULL)
This commit is contained in:
parent
cc37fd1ea9
commit
3d2c315049
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user