Fix Windows build (re r77461)

This commit is contained in:
Antoine Pitrou 2010-01-13 08:55:20 +00:00
parent 6467213bfd
commit 5c767c2f87
1 changed files with 1 additions and 1 deletions

View File

@ -5791,10 +5791,10 @@ PyObject *replace(PyUnicodeObject *self,
goto nothing;
if (str1->length == str2->length) {
Py_ssize_t i;
/* same length */
if (str1->length == 0)
goto nothing;
Py_ssize_t i;
if (str1->length == 1) {
/* replace characters */
Py_UNICODE u1, u2;