Kaydet (Commit) a1b56294 authored tarafından Brett Cannon's avatar Brett Cannon

Remove an unnecessary variable.

Found using Clang's static analyzer.
üst 9545a23c
...@@ -745,7 +745,6 @@ void _pysqlite_final_callback(sqlite3_context* context) ...@@ -745,7 +745,6 @@ void _pysqlite_final_callback(sqlite3_context* context)
{ {
PyObject* function_result = NULL; PyObject* function_result = NULL;
PyObject** aggregate_instance; PyObject** aggregate_instance;
PyObject* aggregate_class;
#ifdef WITH_THREAD #ifdef WITH_THREAD
PyGILState_STATE threadstate; PyGILState_STATE threadstate;
...@@ -753,8 +752,6 @@ void _pysqlite_final_callback(sqlite3_context* context) ...@@ -753,8 +752,6 @@ void _pysqlite_final_callback(sqlite3_context* context)
threadstate = PyGILState_Ensure(); threadstate = PyGILState_Ensure();
#endif #endif
aggregate_class = (PyObject*)sqlite3_user_data(context);
aggregate_instance = (PyObject**)sqlite3_aggregate_context(context, sizeof(PyObject*)); aggregate_instance = (PyObject**)sqlite3_aggregate_context(context, sizeof(PyObject*));
if (!*aggregate_instance) { if (!*aggregate_instance) {
/* this branch is executed if there was an exception in the aggregate's /* this branch is executed if there was an exception in the aggregate's
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment