]> granicus.if.org Git - python/commitdiff
bpo-32604: NULL-terminate kwlist in channel_drop_interpreter(). (gh-5437)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 30 Jan 2018 04:04:15 +0000 (21:04 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2018 04:04:15 +0000 (21:04 -0700)
Modules/_xxsubinterpretersmodule.c

index ed79a13d4a400645ce2dab90dd6f888443fd2d3d..d2b5f26fae1d0907d01e8e608d3fde48bbdf87d0 100644 (file)
@@ -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;