Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
We don't use the return value of pysqlite_statement_reset
  • Loading branch information
Erlend E. Aasland committed Aug 20, 2021
commit 2f8cb23768c8e33aec76c58cb86601632e5a85cc
4 changes: 2 additions & 2 deletions Modules/_sqlite/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ cursor_dealloc(pysqlite_Cursor *self)
PyObject_ClearWeakRefs((PyObject*)self);
}
if (self->statement) {
pysqlite_statement_reset(self->statement);
(void)pysqlite_statement_reset(self->statement);
}
Comment thread
erlend-aasland marked this conversation as resolved.
tp->tp_clear((PyObject *)self);
tp->tp_free(self);
Expand Down Expand Up @@ -565,7 +565,7 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation
break;
}

pysqlite_statement_reset(self->statement);
(void)pysqlite_statement_reset(self->statement);
pysqlite_statement_mark_dirty(self->statement);

pysqlite_statement_bind_parameters(state, self->statement, parameters);
Expand Down