[Python-checkins] bpo-32604: NULL-terminate kwlist in channel_drop_interpreter(). (gh-5437)

Eric Snow webhook-mailer at python.org
Mon Jan 29 23:04:18 EST 2018


https://github.com/python/cpython/commit/83e64c8a544028ae677af2a0bc268dbe1c11cc3a
commit: 83e64c8a544028ae677af2a0bc268dbe1c11cc3a
branch: master
author: Eric Snow <ericsnowcurrently at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-01-29T21:04:15-07:00
summary:

bpo-32604: NULL-terminate kwlist in channel_drop_interpreter(). (gh-5437)

files:
M Modules/_xxsubinterpretersmodule.c

diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c
index ed79a13d4a40..d2b5f26fae1d 100644
--- a/Modules/_xxsubinterpretersmodule.c
+++ b/Modules/_xxsubinterpretersmodule.c
@@ -1916,7 +1916,7 @@ static PyObject *
 channel_drop_interpreter(PyObject *self, PyObject *args, PyObject *kwds)
 {
     // Note that only the current interpreter is affected.
-    static char *kwlist[] = {"id", "send", "recv"};
+    static char *kwlist[] = {"id", "send", "recv", NULL};
     PyObject *id;
     int send = -1;
     int recv = -1;



More information about the Python-checkins mailing list