mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
ready the correct string
This commit is contained in:
parent
02ffa08990
commit
4c13a4a352
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue