summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-02 15:07:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-02 15:07:38 (GMT)
commit4c13a4a3522b087f31465bf4e097744a8a17d014 (patch)
treed18d66dcdee526801b4e350bf069eeff36863046 /Objects
parent02ffa08990085cffacb7cbdcc6bcde767dac6256 (diff)
downloadcpython-4c13a4a3522b087f31465bf4e097744a8a17d014.zip
cpython-4c13a4a3522b087f31465bf4e097744a8a17d014.tar.gz
cpython-4c13a4a3522b087f31465bf4e097744a8a17d014.tar.bz2
ready the correct string
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ PyUnicode_Count(PyObject *str,
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;