Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Oct 7, 2024
1 parent cbb7e6c commit 28c224d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ APSWCursor_dobinding(APSWCursor *self, int arg, PyObject *obj)
static int
APSWCursor_dobindings(APSWCursor *self)
{
int nargs, arg, res = -1, sz = 0;
int nargs, arg, sz = 0;
PyObject *obj;

assert(!PyErr_Occurred());
Expand Down Expand Up @@ -633,8 +633,6 @@ APSWCursor_dobindings(APSWCursor *self)
return -1;
}

res = SQLITE_OK;

/* nb sqlite starts bind args at one not zero */
for (arg = 1; arg <= nargs; arg++)
{
Expand All @@ -647,7 +645,6 @@ APSWCursor_dobindings(APSWCursor *self)
}

self->bindingsoffset += nargs;
assert(res == 0);
return 0;
}

Expand Down

0 comments on commit 28c224d

Please sign in to comment.