Skip to content

Commit

Permalink
pythongh-102941: Fix "‘subobj’ may be used uninitialized in this func…
Browse files Browse the repository at this point in the history
…tion" warning in `bytes_methods.c` (python#102942)
  • Loading branch information
sobolevn authored Mar 27, 2023
1 parent 30a306c commit 2cdc518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/bytes_methods.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2cdc518

Please sign in to comment.