Skip to content

Commit 5819902

Browse files
Fix return value
1 parent a5fca9d commit 5819902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sqlite/cursor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ static PyObject *
13131313
get_rowcount(pysqlite_Cursor *self, void *Py_UNUSED(closure))
13141314
{
13151315
if (!check_cursor(self)) {
1316-
return -1;
1316+
return NULL;
13171317
}
13181318
if (self->rowcount != -1L) {
13191319
long changes = (long)sqlite3_total_changes(self->connection->db);

0 commit comments

Comments
 (0)