bpo-39494: Remove extra null terminators from kwlist vars (GH-18267)

This commit is contained in:
Alex Henrie 2020-01-29 21:12:53 -07:00 committed by GitHub
parent 2e6569b669
commit 188bb5b1e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -773,7 +773,7 @@ PyObject* pysqlite_cursor_fetchone(pysqlite_Cursor* self, PyObject* args)
PyObject* pysqlite_cursor_fetchmany(pysqlite_Cursor* self, PyObject* args, PyObject* kwargs) PyObject* pysqlite_cursor_fetchmany(pysqlite_Cursor* self, PyObject* args, PyObject* kwargs)
{ {
static char *kwlist[] = {"size", NULL, NULL}; static char *kwlist[] = {"size", NULL};
PyObject* row; PyObject* row;
PyObject* list; PyObject* list;

View File

@ -105,7 +105,7 @@ RAM instead of on disk.");
static PyObject* module_complete(PyObject* self, PyObject* args, PyObject* static PyObject* module_complete(PyObject* self, PyObject* args, PyObject*
kwargs) kwargs)
{ {
static char *kwlist[] = {"statement", NULL, NULL}; static char *kwlist[] = {"statement", NULL};
char* statement; char* statement;
PyObject* result; PyObject* result;
@ -135,7 +135,7 @@ Checks if a string contains a complete SQL statement. Non-standard.");
static PyObject* module_enable_shared_cache(PyObject* self, PyObject* args, PyObject* static PyObject* module_enable_shared_cache(PyObject* self, PyObject* args, PyObject*
kwargs) kwargs)
{ {
static char *kwlist[] = {"do_enable", NULL, NULL}; static char *kwlist[] = {"do_enable", NULL};
int do_enable; int do_enable;
int rc; int rc;