]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36051: Fix compiler warning. (GH-18325)
authorInada Naoki <songofacandy@gmail.com>
Mon, 3 Feb 2020 10:03:34 +0000 (19:03 +0900)
committerGitHub <noreply@github.com>
Mon, 3 Feb 2020 10:03:34 +0000 (19:03 +0900)
Objects/stringlib/join.h

index 4d023ed1a851e475cd716095349a2cfc3068495d..8ad598ad5c9fd70aec5483724f9e270435e88859 100644 (file)
@@ -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) {