diff options
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 98deeda8c7..e152e732a4 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; |