Skip to content

Commit 2cdc518

Browse files
authored
gh-102941: Fix "‘subobj’ may be used uninitialized in this function" warning in bytes_methods.c (#102942)
1 parent 30a306c commit 2cdc518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/bytes_methods.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ _Py_bytes_tailmatch(const char *str, Py_ssize_t len,
774774
{
775775
Py_ssize_t start = 0;
776776
Py_ssize_t end = PY_SSIZE_T_MAX;
777-
PyObject *subobj;
777+
PyObject *subobj = NULL;
778778
int result;
779779

780780
if (!stringlib_parse_args_finds(function_name, args, &subobj, &start, &end))

0 commit comments

Comments
 (0)