Skip to content

Commit 2f8cb23

Browse files
author
Erlend E. Aasland
committed
We don't use the return value of pysqlite_statement_reset
1 parent 99adc05 commit 2f8cb23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_sqlite/cursor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ cursor_dealloc(pysqlite_Cursor *self)
121121
PyObject_ClearWeakRefs((PyObject*)self);
122122
}
123123
if (self->statement) {
124-
pysqlite_statement_reset(self->statement);
124+
(void)pysqlite_statement_reset(self->statement);
125125
}
126126
tp->tp_clear((PyObject *)self);
127127
tp->tp_free(self);
@@ -565,7 +565,7 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation
565565
break;
566566
}
567567

568-
pysqlite_statement_reset(self->statement);
568+
(void)pysqlite_statement_reset(self->statement);
569569
pysqlite_statement_mark_dirty(self->statement);
570570

571571
pysqlite_statement_bind_parameters(state, self->statement, parameters);

0 commit comments

Comments
 (0)