[Python-checkins] bpo-39494: Remove extra null terminators from kwlist vars (GH-18267)

Alex Henrie webhook-mailer at python.org
Wed Jan 29 23:12:57 EST 2020


https://github.com/python/cpython/commit/188bb5b1e868eecf2342195dc45caa332ac3b6c7
commit: 188bb5b1e868eecf2342195dc45caa332ac3b6c7
branch: master
author: Alex Henrie <alexhenrie24 at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-01-30T07:12:53+03:00
summary:

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

files:
M Modules/_sqlite/cursor.c
M Modules/_sqlite/module.c

diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 45f5865590d69..47dbc77474120 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -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;
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index d5c353ea7bee8..4d9d3d41c7b71 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -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;
 



More information about the Python-checkins mailing list