summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-03-27 00:05:06 (GMT)
committerGitHub <noreply@github.com>2023-03-27 00:05:06 (GMT)
commit2cdc5189a6bc3157fddd814662bde99ecfd77529 (patch)
tree3c95fdb7fde1577cae608ae1b8ea0f1c28f1d3d1 /Objects
parent30a306c2ade6c2af3c0b1d988a17dae3916e0d27 (diff)
downloadcpython-2cdc5189a6bc3157fddd814662bde99ecfd77529.zip
cpython-2cdc5189a6bc3157fddd814662bde99ecfd77529.tar.gz
cpython-2cdc5189a6bc3157fddd814662bde99ecfd77529.tar.bz2
gh-102941: Fix "‘subobj’ may be used uninitialized in this function" warning in `bytes_methods.c` (#102942)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytes_methods.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c
index 6b81663..ef9e65e 100644
--- a/Objects/bytes_methods.c
+++ b/Objects/bytes_methods.c
@@ -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))