File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1183,18 +1183,18 @@ pysqlite_cursor_iternext(PyObject *op)
11831183 if (self -> statement -> is_dml ) {
11841184 self -> rowcount = (long )sqlite3_changes (self -> connection -> db );
11851185 }
1186- int rc = stmt_reset (self -> statement );
1186+ rc = stmt_reset (self -> statement );
11871187 Py_CLEAR (self -> statement );
11881188 if (rc != SQLITE_OK ) {
11891189 goto reset_failure ;
11901190 }
11911191 }
11921192 else if (rc != SQLITE_ROW ) {
11931193 rc = set_error_from_db (self -> connection -> state , self -> connection -> db );
1194- int reset_ok = stmt_reset (self -> statement );
1194+ int reset_rc = stmt_reset (self -> statement );
11951195 Py_CLEAR (self -> statement );
11961196 Py_DECREF (row );
1197- if (rc == SQLITE_OK && reset_ok != SQLITE_OK ) {
1197+ if (rc == SQLITE_OK && reset_rc != SQLITE_OK ) {
11981198 goto reset_failure ;
11991199 }
12001200 return NULL ;
You can’t perform that action at this time.
0 commit comments