bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271)
This commit is contained in:
parent
c38fd0df2b
commit
1f44e775df
|
@ -611,7 +611,6 @@ static PyObject *
|
||||||
pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
|
pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
|
||||||
{
|
{
|
||||||
PyObject* script_obj;
|
PyObject* script_obj;
|
||||||
PyObject* script_str = NULL;
|
|
||||||
const char* script_cstr;
|
const char* script_cstr;
|
||||||
sqlite3_stmt* statement;
|
sqlite3_stmt* statement;
|
||||||
int rc;
|
int rc;
|
||||||
|
@ -685,8 +684,6 @@ pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
|
||||||
}
|
}
|
||||||
|
|
||||||
error:
|
error:
|
||||||
Py_XDECREF(script_str);
|
|
||||||
|
|
||||||
if (PyErr_Occurred()) {
|
if (PyErr_Occurred()) {
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue