mirror of https://github.com/python/cpython
gh-102941: Fix "‘subobj’ may be used uninitialized in this function" warning in `bytes_methods.c` (#102942)
This commit is contained in:
parent
30a306c2ad
commit
2cdc5189a6
|
@ -774,7 +774,7 @@ _Py_bytes_tailmatch(const char *str, Py_ssize_t len,
|
|||
{
|
||||
Py_ssize_t start = 0;
|
||||
Py_ssize_t end = PY_SSIZE_T_MAX;
|
||||
PyObject *subobj;
|
||||
PyObject *subobj = NULL;
|
||||
int result;
|
||||
|
||||
if (!stringlib_parse_args_finds(function_name, args, &subobj, &start, &end))
|
||||
|
|
Loading…
Reference in New Issue