Skip to content

Commit cbcd640

Browse files
author
Erlend E. Aasland
committed
Use sqlite3_stmt pointer iso. deref'ing self when calling sqlite3_reset
1 parent df769c3 commit cbcd640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sqlite/statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ int pysqlite_statement_reset(pysqlite_Statement* self)
378378

379379
int rc;
380380
Py_BEGIN_ALLOW_THREADS
381-
rc = sqlite3_reset(self->st);
381+
rc = sqlite3_reset(stmt);
382382
Py_END_ALLOW_THREADS
383383

384384
if (rc == SQLITE_OK) {

0 commit comments

Comments
 (0)