commit | 4c13a4a3522b087f31465bf4e097744a8a17d014 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Mon Jan 02 09:07:38 2012 -0600 |
committer | Benjamin Peterson <benjamin@python.org> | Mon Jan 02 09:07:38 2012 -0600 |
tree | d18d66dcdee526801b4e350bf069eeff36863046 | |
parent | 02ffa08990085cffacb7cbdcc6bcde767dac6256 [diff] |
ready the correct string
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 98deeda..e152e73 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -9139,7 +9139,7 @@ Py_DECREF(str_obj); return -1; } - if (PyUnicode_READY(substr) == -1 || PyUnicode_READY(str_obj) == -1) { + if (PyUnicode_READY(sub_obj) == -1 || PyUnicode_READY(str_obj) == -1) { Py_DECREF(substr); Py_DECREF(str_obj); return -1;