]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- #121013 - stringobject.c -- "".join(u"this is a test") dumped core
authorMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 20:44:51 +0000 (20:44 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 20:44:51 +0000 (20:44 +0000)
Objects/stringobject.c

index dbade8ca795cbd02dc7b79079161bfbb6b08a809..6ba907e1e81391cb929cfa9118942a6570433b4b 100644 (file)
@@ -835,7 +835,7 @@ string_join(PyStringObject *self, PyObject *args)
                        if (PyUnicode_Check(item)) {
                                Py_DECREF(res);
                                Py_DECREF(seq);
-                               return PyUnicode_Join((PyObject *)self, seq);
+                               return PyUnicode_Join((PyObject *)self, orig);
                        }
                        PyErr_Format(PyExc_TypeError,
                                     "sequence item %i: expected string,"