]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39494: Remove extra null terminators from kwlist vars (GH-18267)
authorAlex Henrie <alexhenrie24@gmail.com>
Thu, 30 Jan 2020 04:12:53 +0000 (21:12 -0700)
committerGitHub <noreply@github.com>
Thu, 30 Jan 2020 04:12:53 +0000 (07:12 +0300)
Modules/_sqlite/cursor.c
Modules/_sqlite/module.c

index 45f5865590d692290e63817d31af6e0f822474da..47dbc77474120e2f14e9000e3e5bc44ef1113dc3 100644 (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)
 {
-    static char *kwlist[] = {"size", NULL, NULL};
+    static char *kwlist[] = {"size", NULL};
 
     PyObject* row;
     PyObject* list;
index d5c353ea7bee837178a37a094ce038db03688615..4d9d3d41c7b71b9ab539bd3a8bf76d65455a9a0e 100644 (file)
@@ -105,7 +105,7 @@ RAM instead of on disk.");
 static PyObject* module_complete(PyObject* self, PyObject* args, PyObject*
         kwargs)
 {
-    static char *kwlist[] = {"statement", NULL, NULL};
+    static char *kwlist[] = {"statement", NULL};
     char* statement;
 
     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*
         kwargs)
 {
-    static char *kwlist[] = {"do_enable", NULL, NULL};
+    static char *kwlist[] = {"do_enable", NULL};
     int do_enable;
     int rc;