[Python-checkins] bpo-36051: Fix compiler warning. (GH-18325)

Inada Naoki webhook-mailer at python.org
Mon Feb 3 05:03:43 EST 2020


https://github.com/python/cpython/commit/869c0c99b94ff9527acc1ca060164ab3d1bdcc53
commit: 869c0c99b94ff9527acc1ca060164ab3d1bdcc53
branch: master
author: Inada Naoki <songofacandy at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-02-03T19:03:34+09:00
summary:

bpo-36051: Fix compiler warning. (GH-18325)

files:
M Objects/stringlib/join.h

diff --git a/Objects/stringlib/join.h b/Objects/stringlib/join.h
index 4d023ed1a851e..8ad598ad5c9fd 100644
--- a/Objects/stringlib/join.h
+++ b/Objects/stringlib/join.h
@@ -20,7 +20,7 @@ STRINGLIB(bytes_join)(PyObject *sep, PyObject *iterable)
     Py_buffer static_buffers[NB_STATIC_BUFFERS];
 #define GIL_THRESHOLD 1048576
     int drop_gil = 1;
-    PyThreadState *save;
+    PyThreadState *save = NULL;
 
     seq = PySequence_Fast(iterable, "can only join an iterable");
     if (seq == NULL) {



More information about the Python-checkins mailing list