From: Benjamin Peterson Date: Mon, 2 Jan 2012 15:07:38 +0000 (-0600) Subject: ready the correct string X-Git-Tag: v3.3.0a1~490 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c13a4a3522b087f31465bf4e097744a8a17d014;p=thirdparty%2FPython%2Fcpython.git ready the correct string --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 98deeda8c7fa..e152e732a48f 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;